Question

In: Computer Science

Structured query language (SQL): A. Does not allow conditions to be put on the query. B....

Structured query language (SQL):

A. Does not allow conditions to be put on the query. B. Is a complex language used to extract data from a limited number of tables. C. Isolates data within tables. D. Takes advantage of the primary record key to link tables.

Solutions

Expert Solution

Structured query language (SQL):

A. Does not allow conditions to be put on the query. FALSE

SQL allows conditions to be put on the query using WHERE clause. For example following is a conditional SELECT query

SELECT * FROM EMPLOYEE WHERE GENDER = 'MALE';

B. Is a complex language used to extract data from a limited number of tables. FALSE

SQL is a simple language. It can be used to extract data from one or more tables. Data from multiple tables can be combined using JOIN. It can retrieve even millions of records from multiple tables.

C. Isolates data within tables. TRUE

In RDMS, all data are stored in tables. No data is stored outside table. Data is isolated within tables, but relationship can be established across tables. For example FOREIGN KEY is used to link acolumns in two tables.

D. Takes advantage of the primary record key to link tables. TRUE

The advantage of normalization is PRIMARY key to uniquely identify a record with in a table. SQL query will be faster when tables are normalized with primary key


Related Solutions

Question 6        (Marks: 35) Structured Query Language (SQL) is a language that is widely used in...
Question 6        (Marks: 35) Structured Query Language (SQL) is a language that is widely used in industry to create, update and query data in relational databases. This question must NOT be done practically (i.e. in the computer room). You are required to write the SQL code in your answer book. Q.6.1 The below sample data in third normal form was provided by a database designer. Answer the below questions using this data. Table: Country Primary key: CountryID (auto number) All...
B) DML and SQL Query For this DB Schema, answer the below questions: Employee (Fname, Minit,...
B) DML and SQL Query For this DB Schema, answer the below questions: Employee (Fname, Minit, Lname, Ssn, Bdate, Address, Sex, Salary, Super_ssn, Dno) Department (Dname, Dnumber, Mgr_ssn, Mgr_start_date) 5. Delete from Employee table, those who have First name: James. 6. Delete from Employee table, those who have Salary more than 4000. 7. What happens if you try to delete one department? 8. Retrieve the data of all employee. 9. Retrieve the data of all male employee. 10. Retrieve the...
Describe what each line does in the following SQL query The lyrics database is provided under...
Describe what each line does in the following SQL query The lyrics database is provided under question 3 for context 1. select studioID, studioname, base from salespeople sa inner join studios st on (sa.salesID = st.salesid) where base < 300 2. select concat_ws(' ', firstname, lastname) as "Member Name"         from members; 3. select m.lastname, m.firstname, s.lastname         from members m inner join salespeople s using (salesID)         order by m.lastname asc; The lyrics database is provided below DROP TABLES...
Match each term to its correct description. Data-driven fraud detection Risk assessment Structured query language Data...
Match each term to its correct description. Data-driven fraud detection Risk assessment Structured query language Data analysis software Data warehouse Benford's law Vertical Analysis Horizontal analysis z-score Matosas matrix A. Tool that determines the percentage change in balance sheet and income statement numbers from one period to the next. B. A hypothesis testing approach: the investigator makes hypotheses and tests to see which are supported by the data. C. A standardized programming language that allows one to request information from...
How to write a query in SQL using the Group by function to decide if the...
How to write a query in SQL using the Group by function to decide if the results of the diet worked. There are 6 columns ID, Gender, treatment, start_weight_kg, end_weight_kg, and correct change (end weight minus start weight). With the information given write a SQL to determine if the the results(correct change) worked. Question is not incomplete.
Describe in words what the function of each line is in the following SQL query The...
Describe in words what the function of each line is in the following SQL query The lyrics database is provided under question 3 for context 1. select studioID, studioname, base from salespeople sa inner join studios st on (sa.salesID = st.salesid) where base < 300 2. SELECT artistName FROM Artists WHERE artistID IN (SELECT artistID FROM Titles) 3. select m.lastname, m.firstname, s.lastname         from members m inner join salespeople s using (salesID)         order by m.lastname asc; The lyrics database...
1. How do indexes improve SQL query performance? 2. How can stored procedure design improve query...
1. How do indexes improve SQL query performance? 2. How can stored procedure design improve query times in a data mart? 3. Why/How does de-normalization of a data mart design improve performance of queries? 4. What is a different between Client-Servervs. Distributed Architecture? 5. What are some primary features of a 3-tier architecture design?
1. Write a query in SQL to find the full name of the “Actors” who appeared...
1. Write a query in SQL to find the full name of the “Actors” who appeared in the movie titled Star Wars (using JOIN ). 2.Write a SQL query to find the movie Title that has received Lowest rating from reviewers, but whose actors have received an award for their contribution in movie. (Expected Output: Fantastic Beasts and Where to Find Them) 3.Write a SQL query that display the list of genres, Number of movies in that genre grouped by...
In sql: Write a query to produce a listing of unique vendor names who have at...
In sql: Write a query to produce a listing of unique vendor names who have at least one invoice with us. You are using a table view called COMPANY_INFORMATION that lists a vendor id, vendor name, term id, and term description. The second table you will reference is the invoice table that lists vendor id, invoice num, invoice number, and invoice total. Do not show duplicate results.
What is the difference between Fact and Query in a logic programming language?
What is the difference between Fact and Query in a logic programming language?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT