Preview

RQ7 COMMANDS PT2520

Satisfactory Essays
Open Document
Open Document
413 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
RQ7 COMMANDS PT2520
PT2520
SQL COMMANDS FOR FUN……..
VL#8
TOPIC: FUNCTIONAL COMMANDS IN SQL 2008
NAME: Darius Murdock DATE: November 6, 2014
VL#8: SECURITY IN SQL AND ROLES IN SQL SERVER
1. How do you create Query in SQL? COMMAND OR GUI?
SQL:
COMMAND: SELECT ASTRICTS (*) FROM TableName
GUI: Right Click New Database

2. Define statement in SQL will give you output with records starting with T.

3. Define INNER JOIN AND WRITE DOWN One example:

4. What is EQI Join?

5. What is the structure or command used in Joining Tutor table with session based on tutorkey as primary and foreign key.
With Following fields:
Lastname
Studentkey
Firstname
sessionstatus

6. Give an example for WHERE Clause:
SELECT * FROM SALES WHERE TOTAL = PRICE*QUANTITY

7. Give an example for Aliasing. Like, Group By, Having, Count, Max. Datepart.
TutorLastname AS [LName]

8. List 10 commands you learned in SQL:
CREATE TABLE - creates a new database table
ALTER TABLE - alters a database table
DROP TABLE - deletes a database table
CREATE INDEX - creates an index (search key)
DROP INDEX - deletes an index
SELECT - get data from a database table
UPDATE - change data in a database table
DELETE - remove data from a database table
INSERT INTO - insert new data in a database table
GROUP BY

9. What command do you use to get total of students with age over 25?
SELECT COUNT (*) AS “TOTAL OVER 25”

10. The role of AND OR, and Between in SQL query and give an example for each one.

11. _______________Clause sets a conditional statement, and it can be used with any type of SQL query

12 .______________temporarily assigns a table column a new name

13.______________It is used to extract data from databases

14. ______________is the command used to insert new data (a new row) into a table by specifying a list of values to be inserted into each table column.

15. ____________links together two or more conditional statements for increased filtering when running SQL commands

16.

You May Also Find These Documents Helpful

  • Good Essays

    Each query in the script file you will create must be numbered (use --1 comments for numbering) and in order. The SQL for the following exercises should be written using notepad and run in SQL*Plus.…

    • 1559 Words
    • 7 Pages
    Good Essays
  • Satisfactory Essays

    PT2520 Unit7Labs Tramil

    • 330 Words
    • 1 Page

    6. What are database requirements? This is something a database must do. For instance, it must keep track of tutors and the classes for which they can tutor.…

    • 330 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    Nt1310 Unit 1 Quiz

    • 1980 Words
    • 8 Pages

    6 . For an unconditional approach to a particular part of a complex PL/SQL block, which of the following control structures can be used?…

    • 1980 Words
    • 8 Pages
    Good Essays
  • Satisfactory Essays

    Pt1420 Unit 4

    • 380 Words
    • 2 Pages

    As you drag the mouse pointer across a blank grid, a(n) ______Live Preview____ of the table structure will appear in the document.…

    • 380 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Nt1330 Unit 4

    • 1142 Words
    • 5 Pages

    30. Dax performed a search for counties with populations greater than 25,000 from one table…

    • 1142 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    unit 5 assignment 1

    • 423 Words
    • 3 Pages

    4. The AND operator connects two Boolean expressions into one compound expression. Both must be true for the compound expression to be true.…

    • 423 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    SEQUEL or SQL is a data language that provides benefits for all types of users. SQL’s purpose is to provide an interface to a relational database such as Oracle Database. Dr. Edgar Frank “Ted” Codd introduced the first commercially available implementation of SQL. Today, SQL is accepted as the standard RDBMS language. The features of SQL include processing sets of data as groups rather than as individual units and providing automatic navigation to the data. It uses statements that are complex and powerful individually, and that therefore stand alone. Flow-control statements were not part of SQL originally, but they are found in the recently accepted optional part of SQL. Flow-control statements are commonly known as "persistent stored modules" (PSM), and the PL/SQL extension to Oracle SQL is similar to PSM.…

    • 452 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    Pt2520 Unit 6

    • 1447 Words
    • 6 Pages

    What is data redundancy, and which characteristics of the file system can lead to it?…

    • 1447 Words
    • 6 Pages
    Powerful Essays
  • Satisfactory Essays

    Unit 6 True

    • 287 Words
    • 1 Page

    The WHERE clause is used to set criteria by which to filter which rows are returned or affected. TRUE…

    • 287 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    3. Why do you think cross joins are allowed as a legitimate join? What uses can you see for joins?…

    • 337 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    Pt2520 Final Answers 1/3

    • 329 Words
    • 2 Pages

    what best describes the function of a foreign key. the primary key repeated in another table to show relation…

    • 329 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    6) Sum, Avg, and Max are examples of ________ functions that are used to evaluate entire columns of data.…

    • 1829 Words
    • 8 Pages
    Good Essays
  • Satisfactory Essays

    Hrm Labor

    • 363 Words
    • 2 Pages

    | (TCO 2) Which of the following functions would you use to extract the from your records in the database?…

    • 363 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Week 1 Submission

    • 1120 Words
    • 5 Pages

    Copy the demo.sql file from the Doc Share to the C:\temp directory. At the sql prompt enter the command @V:\temp\demo.sql. This will create some tables and insert data into them. View the script in notepad to determine the table names that were created. Use the describe command to view the structure of the tables. Please use the template below to provide your solutions.…

    • 1120 Words
    • 5 Pages
    Good Essays
  • Good Essays

    Macro Examples

    • 1120 Words
    • 5 Pages

    7. The If…Then…Else…End If code allows code to be conditionally executed depending on whether a specified logical condition has been met.…

    • 1120 Words
    • 5 Pages
    Good Essays

Related Topics