[SOLVED] Assignment 12 (Chapter 14 T-SQL Scripting, 40 points)

20.00 $

Programming resource
, Digital learning resource
Categories: ,
✓ Practical programming resource
✓ Suitable for guided study and reference
✓ Tutor guidance available when needed

Description

5/5 - (3 votes)

Q1. (20 points)
Between the ‘use’ and ‘go’, write a T-SQL script without using any subqueries to
display total number of rows of all three tables of ClearWater database, including
Categories, Products, and Suppliers. Your output should print

Total rows of Categories, Products, and Suppliers = xxxxxxx

use [ClearWater]

go

Q2. (20 points)
Repeat Q1 for the same output without using variables and a script but only one
single SELECT statement with subqueries.

use [ClearWater]

 

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.