diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/exercise.sql_simple-queries.iml b/.idea/exercise.sql_simple-queries.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/.idea/exercise.sql_simple-queries.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..37e641e --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..3a4dbac --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Lakshmi bulusu.sql b/Lakshmi bulusu.sql new file mode 100644 index 0000000..e1e1e87 --- /dev/null +++ b/Lakshmi bulusu.sql @@ -0,0 +1,15 @@ +-- PART 1.SQL +SELECT productName,productLine,buyPrice FROM products ORDER BY buyprice DESC; + --PART 2.SQL +SELECT contactLastName,contactFirstName,city FROM customers WHERE country='Germany' ORDER BY contactLastName ASC; + --PART 3.SQL +SELECT DISTINCT STATUS FROM orders ORDER BY STATUS ASC; +--PART 4.SQL +select * FROM payments WHERE paymentDate >'2005-01-01' ORDER BY paymentDate ASC; +--PART 5.SQL +SELECT lastName,firstName,email,jobTitle FROM employees,offices WHERE employees.officeCode=offices.officeCode AND city='San Francisco'; +--PART 6.SQL +SELECT productName,productLine,productScale,productVendor FROM products +WHERE productname IN (SELECT productname FROM products where productLine IN ("Vintage Cars","Classic Cars") ORDER BY productLine desc) +ORDER BY productName; + diff --git a/~$iginal-readme.docx b/~$iginal-readme.docx new file mode 100644 index 0000000..8a06499 Binary files /dev/null and b/~$iginal-readme.docx differ