Date functions MSSQL
This Getdate:
2025-05-17 08:44:32Month Year
Select DateName(Month,getdate())+’ ‘+ DateName(YYYY,getdate()) Result: May 2025
Greenshot
The screenshot tool optimized. Save a screenshot or a part of the screen to a file within a second. Apply text and shapes to the screenshot. Offers capture of window, region or full screenshot. Supports several image format.
Handtekening van Outlook 2007/2010
In Outlook 2007 en 2010 hebt u het handtekeningbestand niet nodig. U kunt direct vanuit het mailprogramma een handtekening instellen, inclusief opmaak en een afbeelding. In Outlook 2007 opent u het menu Extra, Opties en vervolgens het tabblad E-mailindeling. In Outlook 2010 gaat u naar het tabblad (menu) Bestand en hier kiest u Opties, E-mail. Met de knop Handtekeningen komt u in een overzichtsscherm waar u uw mailhandtekeningen kunt beheren. Read more
Outlook 2003: Toevoegen extra mailbox
Voor deze functie is een Microsoft Exchange-account nodig. Veel persoonlijke en privéaccounts gebruiken een ander accounttype, zoals POP3 of IMAP, inclusief Windows Live Hotmail en Google Gmail. Deze accounts kunnen niet met deze functie worden gebruikt.
Als u als gemachtigde toegangsmachtiging voor andere Exchange-postvakken hebt, kunt u de postvakken opgeven die u in Microsoft Outlook wilt kunnen openen.
- Klik in het menu “Extra” op “E-mailaccounts” en selecteer “Bestaande e-mailaccounts weergeven of wijzigen”. Klik vervolgens op “Volgende”, selecteer het Exchange-account en klik op “Wijzigen”.
- Klik op “Meer instellingen” en klik vervolgens op het tabblad “Geavanceerd”.
- Klik onder Postvakken op “Toevoegen” en selecteer vervolgens de postvakken die u wilt toevoegen.
Intersect
Similar to the UNION command, INTERSECT also operates on two SQL statements. The difference is that, while UNION essentially acts as an OR operator (value is selected if it appears in either the first or the second statement), the INTERSECT command acts as an AND operator (value is selected only if it appears in both statements).
The syntax is as follows:
[SQL Statement 1]
INTERSECT
[SQL Statement 2]
Read more
SQL HAVING Clause
Having clause is used to filter data based on the group functions. This is similar to WHERE condition but is used with group functions. Group functions cannot be used in WHERE Clause but can be used in HAVING clause.
Read more
Case
CASE is used to provide if-then-else type of logic to SQL. Its syntax is:
SELECT CASE ("column_name") WHEN "condition1" THEN "result1" WHEN "condition2" THEN "result2" ... [ELSE "resultN"] END FROM "table_name"
“condition” can be a static value or an expression. The ELSE clause is optional.
Read more
Coalesce Function
The COALESCE function in SQL returns the first non-NULL expression among its arguments.
It is the same as the following CASE statement:
SELECT CASE (“column_name”)
WHEN “expression 1 is not NULL” THEN “expression 1”
WHEN “expression 2 is not NULL” THEN “expression 2”
…
[ELSE “NULL”]
END
FROM “table_name”
For examples, say we have the following table,
Table Contact_Info
Name | Business_Phone | Cell_Phone | Home_Phone |
Jeff | 531-2531 | 622-7813 | 565-9901 |
Laura | NULL | 772-5588 | 312-4088 |
Peter | NULL | NULL | 594-7477 |
and we want to find out the best way to contact each person according to the following rules:
1. If a person has a business phone, use the business phone number.
2. If a person does not have a business phone and has a cell phone, use the cell phone number.
3. If a person does not have a business phone, does not have a cell phone, and has a home phone, use the home phone number.
We can use the COALESCE function to achieve our goal:
SELECT Name, COALESCE(Business_Phone, Cell_Phone, Home_Phone) Contact_Phone
FROM Contact_Info;
Result:
Name | Contact_Phone |
Jeff | 531-2531 |
Laura | 772-5588 |
Peter | 594-7477 |
SQL Math Functions
he following is a reference to the main math functions in SQL:
ABS(X) Absolute value-converts negative numbers to positive, or leaves positive numbers alone
CEIL(X) X is a decimal value that will be rounded up.
FLOOR(X) X is a decimal value that will be rounded down.
GREATEST(X,Y) Returns the largest of the two values.
LEAST(X,Y) Returns the smallest of the two values.
MOD(X,Y) Returns the remainder of X / Y.
POWER(X,Y) Returns X to the power of Y.
ROUND(X,Y) Rounds X to Y decimal places. If Y is omitted, X is rounded to the nearest integer.
SIGN(X) Returns a minus if X < 0, else a plus.
SQRT(X) Returns the square root of X.
ESET Remote Administrator
Deze tool biedt effectief en centraal op afstand beheer aan voor ESET NOD32 Antivirus en ESET Smart Security in zowel LAN als WAN netwerken. ESET Remote Administrator wordt meegeleverd met alle Business Edition producten. De nieuwe versie van ESET Remote Administrator biedt een breed scala aan nieuwe functionaliteiten en verbeteringen ten behoeve van het gebruikersgemak voor de beheerder.
Read more