We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 3
SQL Queries:
SELECT: Used to retrieve data from a database table.
INSERT: Used to insert new data into a table. UPDATE: Used to modify existing data in a table. DELETE: Used to delete data from a table. JOIN: Used to combine rows from two or more tables based o GROUP BY: Used to group rows based on one or more colum ORDER BY: Used to sort the result set by one or more colum WHERE: Used to filter rows based on specific conditions. HAVING: Used to filter groups based on specific conditions.
SQL Functions:
COUNT: Used to count the number of rows or non-null values
SUM: Used to calculate the sum of values in a column. AVG: Used to calculate the average of values in a column. MAX: Used to find the maximum value in a column. MIN: Used to find the minimum value in a column. UPPER/LOWER: Used to convert text to uppercase or lowerc CONCAT: Used to concatenate strings. DATE functions: Used to manipulate and perform calculations SUBSTRING/SUBSTR: Used to extract a portion of a string. CASE: Used for conditional logic and transformations in queri Getting data from a table using SELECT statements. De-duplicating data using commands like DISTINCT and COUNT + WHERE. Manipulating string data with TRIM() and SUBSTR. Creating/dropping tables with CREATE TABLE and DROP TABLE. Changing data types with CAST base table.
ore tables based on a related column.
one or more columns. ne or more columns. fic conditions. ecific conditions.