



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Students of Communication, study E-Commerce as an auxiliary subject. these are the key points discussed in these Lecture Slides of E-Commerce : Grouping Operators, Statistical, Selection, Finding Duplicates, Intense Reports, Queries, Complex Information, Sub Query, Update, Insert
Typology: Slides
1 / 7
This page cannot be seen from the preview
Don't miss anything!
COUNT, SUM, AVE, MIN, MAX, STDEV, VAR, FIRST, LAST
EXPRESSION, WHERE
GROUP BY
SELECT Catalog.CatalogID, Catalog.Name,Count(Product.ProductID) AS CountofProductsFROM [Catalog] LEFT JOIN Product ONCatalog.CatalogID = Product.CatalogIDGROUP BY Catalog.CatalogID, Catalog.Name;
CatalogID
Name
CountofProducts
1
Neverland
Supply
31
2
It
Suits
You
0
3
Gameland
0
SELECT DISTINCTROW product.Productname,Product.ProductIDFROM productWHERE (( (product.Productname) In(SELECT Productname FROM product As TmpGROUP BY Productname HAVING Count(*)>1 ) ))ORDER BY product.Productname
Sub-Query is in
BOLD
Note: Alternate use of IN qualifier for a sub-query!
Day 3: Action and Special Queries
Delete * From Authors Where Dead = TRUEDelete * From Publishers Where PubID > 30Delete * From MooCows Delete *
(This query is EVIL)
(Again ANSI SQL omits the * entirely)