Showing posts with the label MySQL Functions

Write a query against the ADDRESS table to select a list of names and phone numbers.

Q. Write a query against the ADDRESS table to select a list of names and phone …

Write a query against the ADDRESS table to show the names and phones of all persons concatenated in following form

Q. Write a query against the ADDRESS table to show the names (first name, last …

Write a query against the EMPL table to show the names of all employees concatenated with their jobtypes.

Q. Write a query against the EMPL table to show the names of all employees conc…

Write a query against table PAYDAY that will show the number of days between the payday and the last day of the month

Q. Write a query against table PAYDAY that will show the number of days between…

Show via query how many days remain until Christmas. Round fractional days up using the numeric function ROUND.

Q. Show via query how many days remain until Christmas. Round fractional days u…

Write a query to show the city of user with first name as MARK.

Table ADDRESS (contains following eight columns)   Last Name …

Write a query to show the current date and time.

Q. Write a query to show the current date and time. Answer = SELECT NOW ();

SELECT UPPER (Title) FROM Library WHERE Price 150; SELECT CONCAT (Author, Type) FROM Library WHERE Qty 3

Q. Given the following table: TABLE: LIBRARY No Title Aut…

SELECT TRUNCATE(AvgMark) FROM Student1 WHERE AvgMark 75; SELECT ROUND(AvgMark) FROM Student1 WHERE Grade = B;

Q. Given the following table: Table: STUDENT1 No. Name Sti…

SELECT LCASE (SPORTS) FROM Club; SELECT MOD (Age, 5) FROM CLUB WHERE Sex = F;

Q. Given the following table: Table: CLUB COACH_ID COACHNAME…

Write commands to find out and display the approximate age of an employee as on today.

Q. Consider two fields B_date, which stores the birth date and J_date, which st…

Write a command to display the current time.

Q. Write a command to display the current time. Answer = SELECT NOW();

Write command to print the day of the week of your Birthday in the year 1999.

Q. Write command to print the day of the week of your Birthday in the year 1999…

Write SQL statement to display Today, the date is current date

Q. Write SQL statement to display Today, the date is < current date > Ans…

Write a command to display the name of current month.

Q. Write a command to display the name of current month. Answer = SELECT MONTHN…

If Str INFORMATICS PRACTICES. and Str1. FOR CLASS XI Write commands to print the output.

Q. If Str = "INFORMATICS PRACTICES …." and Str1 = "... FOR CLASS…

Write commands to display the system date.

Q. Write commands to display the system date. Answers = SELECT CURDATE();

What will be the output of following code? SELECT CONCAT (LOWER (Class), UPPER (xii));

Q. What will be the output of following code? mysql> SELECT CONCAT (LOWER (&…

What will be the output of following code? SELECT UCASE (Computer studies);

Q. What will be the output of following code? mysql> SELECT UCASE ('Comp…

What will be the output of following code? SELECT LCASE (INFORMATICS PRACTICES CLASS 11TH);

Q. What will be the output of following code? mysql> SELECT LCASE ('INFO…

Load More That is All