From 3175ea83b5f8b9973979b6351686eaf5fbc1d992 Mon Sep 17 00:00:00 2001 From: Kshitij Date: Sun, 10 Nov 2024 00:56:55 +0530 Subject: [PATCH] =?UTF-8?q?Fixed=20query=207,=20didn't=20realize=20count?= =?UTF-8?q?=20was=20already=20there,=20wayyyyyyyyyy=20too=20sleeeppyyyyyy?= =?UTF-8?q?=20to=20see=20that=20=F0=9F=98=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practical/Practical Exam/SQL/S9 - SQL Queries.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Practical/Practical Exam/SQL/S9 - SQL Queries.md b/Practical/Practical Exam/SQL/S9 - SQL Queries.md index 04aa043..bd94de9 100644 --- a/Practical/Practical Exam/SQL/S9 - SQL Queries.md +++ b/Practical/Practical Exam/SQL/S9 - SQL Queries.md @@ -127,7 +127,7 @@ SELECT Iname, Pquantity FROM Purchase INNER JOIN Customers ON Purchase.Cno = Cus 7. Create view which shows Iname, Price and Count of all stationary items in descending order of price. ```sql -CREATE VIEW itemView AS SELECT Iname, Iprice, COUNT(*) FROM Items GROUP BY Iname, Iprice ORDER BY Iprice DESC; +CREATE VIEW itemView AS SELECT Iname, Iprice, Icount FROM Items ORDER BY Iprice DESC; SELECT * FROM itemView; ```