Question

Which of the following queries on table STUDENT will return three values as a result? STUDENT...

Which of the following queries on table STUDENT will return three values as a result?

STUDENT

Observe the table STUDENT:

STUDENT

StudentID        SSN                  Name           Class

D111              111-11-1111         Connor       Freshman

D222              222-22-2222         Trevor         Freshman

D333              333-33-3333         Connor       Sophomore

D444              444-44-4444         Parker         Sophomore

D555              555-55-5555         Connor       Sophomore

Select one:

a. SELECT name FROM student;

b. SELECT class FROM student;

c. SELECT DISTINCT name FROM student;

d. SELECT name FROM student WHERE class != 'Sophomore';

0 0
Add a comment Improve this question Transcribed image text
Answer #1

ANSWER:-

c. SELECT DISTINCT name FROM student;

  

  

  

Add a comment
Know the answer?
Add Answer to:
Which of the following queries on table STUDENT will return three values as a result? STUDENT...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • you must implement public class Student by following the instructions as follows exactly. You may reference...

    you must implement public class Student by following the instructions as follows exactly. You may reference Chapter 7 for the similar examples to get the ideas and concepts. Each student must have the following 5 attributes (i.e., instance variables): private String   studentID ;              // student’s ID such as                         1 private String lastName   ;                         // student’s last name such as              Doe private String firstName ;             // student’s first name such as            John private double gpa...

  • a database of employees that corresponds to the employee-payroll hierarchy is provided (see employees.sql to create...

    a database of employees that corresponds to the employee-payroll hierarchy is provided (see employees.sql to create the employees for a MySQL database). Write an application that allows the user to: Add employees to the employee table. Add payroll information to the appropriate table for each new employee. For example, for a salaried employee add the payroll information to the salariedEmployees table 1 is the entity-relationship diagram for the employees database Figure 1: Table relationships in the employees database [1]. Add...

  • Design class Person with private fields name and social security number, and a public virtual member...

    Design class Person with private fields name and social security number, and a public virtual member Design class Person with private fields name and social security number, and a public virtual member function print(). Derive classes Employee and Student from Person. An employee has a private field salary and a student has a private field grade in addition to the data fields in person. Derive classes Professor and Secretary from Employee. A professor has a private field research area and...

  • 1. Create a PL/SQL program block that determines the top students with respect to GPA. Assume...

    1. Create a PL/SQL program block that determines the top students with respect to GPA. Assume that the database has four tables. Student(SSN, SName, DOB, Major) , Grade(SSN, CNo, Grade(0,1,2,3,4)) and Course table(CNo,CName, Credit Hour), Prerequisite(CNo, PreCNo); Student and couse data ae given in the following SQL statements a. Accept a number n as user input with SQL*Plus telling top n%. b. In a loop get the SName and GPA of the top n% people with respect to GPA. c....

  • WRITE SQL QUERY THAT DOES THE FOLLOWING Q3| Find the customer's name and branch names of...

    WRITE SQL QUERY THAT DOES THE FOLLOWING Q3| Find the customer's name and branch names of all customers who do have accounts but not a loan in the bank. And find those customers who do have loan but not have an account in the bank. GIVEN DATABASE TABLES 2 Account table Branch table Customer table Loan table BNAME 3 A# CNAME BNAME BAL BNAME ASSETS BCITY CNAME STREET CCITY CNAME AMT 1234 Baba 2222 Rahimi Sauthdale Ridgedale 150eee Minnetonka Minnetonka...

  • 4. Write SQL data definition commands for each of the following queries: a. How would you add an attribute, Class, to the Student table? b. How would you remove the Registration table? c. How would you change the FacultyName field from 25 characters

    Problems and Exercises 1 through 9 are based on the dass scheduling 3NF relations along with some sample data shown in Figure 6-11. Not shown in this figure are data for an ASSIGNMENT relation, which represents a many-to-many relationship between faculty and sections.4. Write SQL data definition commands for each of the following queries:a. How would you add an attribute, Class, to the Student table?b. How would you remove the Registration table?c. How would you change the FacultyName field from...

  • el Kelly and Chanelle Chambers, ages 47 and 45, are married and live at 584 Thoreau Drive. Boston, MA 59483. Kelly&#...

    el Kelly and Chanelle Chambers, ages 47 and 45, are married and live at 584 Thoreau Drive. Boston, MA 59483. Kelly's Social Security number is 111-11-1111 and Chanclle's is 222-22-2222 The Chambers have two children: Emma, age 23, and Chet, age 19. Their Social Security numbers are 333-33-3333 and 444-44-4444, respectively. Emma is a single college student and earmed $8,000 during the summer. Kelly and Chanelle help Emma through school by paying for her room, board, and tuition. Emma lives...

  • Database Intro Salesmen Sheet Order_info Sheet Business_Info sheet 1.Create your own table design based on the...

    Database Intro Salesmen Sheet Order_info Sheet Business_Info sheet 1.Create your own table design based on the Excel data, and include all relationships (joins). Apply referential integrity rules wherever appropriate. Import the data from Excel to Access to populate tables: 1. Use the Chen technique and illustrate the E-R diagram for the tables you created Note: It may be necessary to change the data composition due to normalization issues, if you change the composition detail how and why; (you may find...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT