Running head : SQL Discuss what kinds of problems require the persona of the distinguishable operator (Give one example each of when you would and would not accustom DISTINCTAnswerThe use of DISTINCT operator eliminates the duplicates set from a grumpy columnExample : When to use DISTINCT keywordA query where the listing of the various products is to be do which were ed .
The product name could be make DISTINCT so that it is non-redundantThe following screenshot shows 999 records as there is all-encompassing redundancy for the dataFigure SEQ Figure \ Arabic 1 : Without using apparent - 999 recordsFigure SEQ Figure \ Arabic 2 : Using Distinct - 38 recordsExample : When not to use DISTINCT keywordDISTINCT cannot be utilize in cases where there is a combination of tables and some determine of span tables would be printedThe following screenshot depicts the ed productsFigure SEQ Figure \ ARABIC 3 : Use of Distinct - Eliminates some recordsFigure SEQ Figure \ ARABIC 4 : Without use of Distinct - brings all rowsDiscuss the differences between the GROUP BY command and the BY command . Give examples to illustrate differencesAnswerGROUP BY command is utilise to group the similar column values when an aggregate function such as ADD , turn over , SUM and others are included in the SQL queryFigure SEQ Figure \ ARABIC 5 : GROUP BY - Used with aggregationBY command is used to sort the column values by the data chip of the column...If you wa nt to get a full essay, order it on our webs! ite: BestEssayCheap.com
If you want to get a full essay, visit our page: cheap essay
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.