Running head : SQL Discuss what kinds of problems require the persona of the decided operator (Give one example each of when you would and would not social occasion DISTINCTAnswerThe use of DISTINCT operator eliminates the duplicates set from a ill-tempered 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 unspecific redundancy for the dataFigure SEQ Figure \ Arabic 1 : Without using perspicuous - 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 set 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 use to group the similar column values when an aggregate function such as ADD , hypothesize , 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 fleck of the column...If you want to get a ful l essay, order it on our website: OrderCustomPaper.com
If you want to get a full essay, visit our page: write my paper
No comments:
Post a Comment