100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

CMSC 424 SQL Midterm(100% correct answers)

Rating
-
Sold
-
Pages
7
Grade
A+
Uploaded on
23-05-2024
Written in
2023/2024

RDBMS acronym correct answers relational database management system RDBMS attributes correct answers data stored in tables, relationships represented by common values such as primary keys and foreign keys 3 benefits of having the SQL standard correct answers reduced training costs, productivity, application portability, application longevity, reduced dependence on a single vendor, cross-system comms 3 categories of SQL commands correct answers DDL(definition), DML(manipulation), DCL(control) DDL correct answers create, alter, drop tables DML correct answers update, insert, query DCL correct answers control database, so give permissions/ privileges create the following tables: STUDENT: id, name, dept_name(FK), tot_cred, advisor_id// Some advisor_id values above will be NULL DEPARTMENT: dept_name, building, budget, created INSTRUCTOR: id, name, dept_name(FK), salary COURSE: course_id, title, dept_name(FK), credits correct answers CREATE TABLE department (dept_name VARCHAR(25) NOT NULL, building VARCHAR(30) NOT NULL, budget decimal(10,2), created date DEFAULT '', CONSTRAINT dep_pk primary key(dept_name)) engine = innoDB; CREATE TABLE course(course_id VARCHAR(25) NOT NULL, title VARCHAR(40), dept_name VARCHAR(25), credits int, CONSTRAINT course_pk primary key(course_id), CONSTRAINT dept_pk foreign_key(dept_name) REFERENCES department(dept_name); CREATE TABLE instructor(id int NOT NULL, name VARCHAR(50), dept_name VARCHAR(25), salary decimal(8,2), CONSTRAINT id_pk PRIMARY KEY(id), CONSTRAINT dept_fk FOREIGN KEY(dept_name) REFERENCES department(dept_name)); CREATE TABLE student(id int NOT NULL, name varchar(25), dept_name VARCHAR(25), tot_cred int, advisor_id int, CONSTRAINT id_pk PRIMARY KEY(id),

Show more Read less
Institution
CMSC 424
Course
CMSC 424









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
CMSC 424
Course
CMSC 424

Document information

Uploaded on
May 23, 2024
Number of pages
7
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Insightfulsh3rry NURSING, ECONOMICS, MATHEMATICS, BIOLOGY, AND HISTORY MATERIALS BEST TUTORING, HOMEWORK HELP, EXAMS, TESTS, AND STUDY GUIDE MATERIALS WITH GUARANTEED A+ I am a dedicated medical practitioner with diverse knowledge in matters
View profile
Follow You need to be logged in order to follow users or courses
Sold
18
Member since
2 year
Number of followers
6
Documents
3781
Last sold
3 weeks ago
Insightful Academy.

On this page,we offer a wide selection of revised study materials that guarantee success in your studies and different courses,latest exam updates,assignments,questions and solved answers you will find them all here. For more inquiries dont hesitate to contact us for assistance! Leave us a review after purchase so we can understand our clients . Wishing you all the best in your studies.

3.5

2 reviews

5
0
4
1
3
1
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions