Explore the essentials of managing tables in PROC SQL with this quiz from Chapter 5. It covers table creation, row and data manipulation, and understanding integrity constraints. This quiz is ideal for learners aiming to enhance their SQL table management skills.
INSERT
LOAD
VALUES
CREATE TABLE
Rate this question:
proc sql; create table work.names (FullName char(25), Age num);
proc sql; create table work.names as (FullName char(25), Age num);
proc sql; create work.names (FullName char(25), Age num);
proc sql; create table work.names set (FullName char(25), Age num);
Rate this question:
It must be used with the REQUIRED integrity constraint.
It ignores the specified integrity constraints if any of the rows that you want to insert or update do not meet the constraint criteria.
It restores your table to its original state if any of the rows that you try to insert or update do not meet the specified integrity constraint criteria.
It allows rows that meet the specified integrity constraint criteria to be inserted or updated, but rejects rows that do not meet the integrity constraint criteria.
Rate this question:
CHECK
NULL
UNIQUE
PRIMARY KEY
Rate this question:
proc sql; describe as select * from sasuser.payrollmaster;
proc sql; describe contents sasuser.payrollmaster;
proc sql; describe table sasuser.payrollmaster;
proc sql; describe * from sasuser.payrollmaster;
Rate this question:
proc sql; create table work.newpayroll as select * from sasuser.payrollmaster;
proc sql; create table work.newpayroll like sasuser.payrollmaster;
proc sql; create table work.newpayroll copy sasuser.payrollmaster;
proc sql; create table work.newpayroll describe sasuser.payrollmaster;
Rate this question:
proc sql; update work.frequentflyers set pointsearned=pointsearned* case if milestraveled < 10000 then 1.5 if milestraveled >= 10000 then 2 else 1 end;
proc sql; update work.frequentflyers set pointsearned=pointsearned* case when milestraveled < 10000 then 1.5 when milestraveled >= 10000 then 2 else 1 end;
proc sql; update work.frequentflyers set pointsearned=pointsearned* case if milestraveled < 10000 then pointsearned*1.5 if milestraveled >= 10000 then pointsearned*2 else 1 end;
proc sql; update work.frequentflyers set pointsearned=pointsearned* case if milestraveled < 10000 then pointsearned*1.5 if milestraveled >= 10000 then pointsearned*2 else pointsearned*1 end;
Rate this question:
It allows you to update column attributes.
It allows you to add new columns in your table.
It allows you to drop columns in your table.
It allows you to change a character column to a numeric column.
Rate this question:
proc sql; delete rows from work.frequentflyers where milestraveled < 10000;
proc sql; drop rows from work.frequentflyers where milestraveled < 10000;
proc sql; drop table from work.frequentflyers where milestraveled < 10000;
proc sql; delete from work.frequentflyers where milestraveled < 10000;
Rate this question:
Quiz Review Timeline (Updated): Dec 5, 2023 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Chapter 8: Managing Processing Using PROC SQL
This quiz in Chapter 8 focuses on managing processing using PROC SQL in SAS. It tests knowledge on syntax, options like INOBS, and specific SQL commands for data handling and...
Questions:
10 |
Attempts:
136 |
Last updated:
Mar 21, 2023
|
Chapter 7: Creating And Managing Views Using PROC SQL
This quiz in Chapter 7 focuses on creating and managing views using PROC SQL. It tests understanding of view operations, such as creation, joining, and querying, enhancing skills...
Questions:
10 |
Attempts:
125 |
Last updated:
Jul 23, 2024
|
Chapter 6: Chapter 6: Creating And Managing Indexes Using PROC SQL
This quiz focuses on creating and managing indexes in SQL, particularly using PROC SQL. It assesses skills related to index creation, ensuring uniqueness, composite index...
Questions:
10 |
Attempts:
105 |
Last updated:
Feb 13, 2024
|
Chapter 4: Combining Tables Vertically Using PROC SQL
Explore the intricacies of combining tables vertically in PROC SQL with this focused quiz. Topics include UNION, EXCEPT, INTERSECT operations, and understanding column overlay in...
Questions:
10 |
Attempts:
183 |
Last updated:
Mar 22, 2023
|
Chapter 3. Combining Tables Horizontally Using PROC SQL
This quiz focuses on combining tables horizontally using PROC SQL, specifically through join operations. It tests understanding of Cartesian products, inner joins, and join...
Questions:
10 |
Attempts:
159 |
Last updated:
Aug 23, 2024
|
Chapter 1: Performing Queries Using Proc SQL
Structured Query Language is a domain-specific language used in programming and designed for managing data held in a relational database management system or for stream...
Questions:
10 |
Attempts:
617 |
Last updated:
Mar 21, 2023
|