ログイン

(Finals) Information Management Mocktest
64問 • 7ヶ月前
  • Xai Alexandrei Delos Reyes
  • 通報

    問題一覧

  • 1

    An ________ performs a calculation on a set of values and returns a single value.

    aggregate function

  • 2

    the minimum attribute value encountered in a given column

    MIN

  • 3

    the maximum attribute value encountered in a given column

    MAX

  • 4

    the number of rows containing non-null values

    COUNT

  • 5

    the sum of all values for a given column

    SUM

  • 6

    the arithmetic mean (average) for a specified column

    AVG

  • 7

    The _____ command option is often used with aggregate functions to group the result-set by one or more columns.

    GROUP BY

  • 8

    What is the CORRECT syntax for MIN

    SELECT MIN(column_name) FROM table_name;

  • 9

    What is the CORRECT syntax for MAX

    SELECT MAX(column_name) FROM table_name;

  • 10

    What is the CORRECT syntax for COUNT

    SELECT COUNT(column_name) FROM table_name;

  • 11

    What is the CORRECT syntax for SUM

    SELECT SUM(column_name) FROM table_name;

  • 12

    What is the CORRECT syntax for AVG

    SELECT AVG(column_name) FROM table_name;

  • 13

    What is the CORRECT syntax for GROUP BY

    SELECT columns FROM table_name GROUP BY columns;

  • 14

    Use an _____ to assign a temporary name to the column. It can also be given to tables.

    Alias

  • 15

    What is the CORRECT syntax of ALIAS

    SELECT column_name AS alias FROM table_name;

  • 16

    What is the CORRECT syntax of HAVING

    SELECT columns FROM table_name GROUP BY columns HAVING condition;

  • 17

    The ______ command option is used to restrict the output of a GROUP BY query by applying conditional criteria to the grouped rows.

    HAVING

  • 18

    returns a four-digit year

    YEAR

  • 19

    returns the number of the month

    MONTH

  • 20

    returns the number of the day

    DAY

  • 21

    returns the current date and time

    GETDATE

  • 22

    adds a number of selected time/date periods to a date then returns the date

    DATEADD

  • 23

    returns the difference between two (2) dates

    DATEDIFF

  • 24

    What is the CORRECT syntax for YEAR

    SELECT OrderID, YEAR(OrderDate) AS Year;

  • 25

    What is the CORRECT syntax for MONTH

    SELECT OrderID, MONTH(OrderDate) AS Month;

  • 26

    What is the CORRECT syntax for DAY

    SELECT OrderID, DAY(OrderDate) AS Day;

  • 27

    What is the CORRECT syntax for GETDATE

    SELECT GETDATE();

  • 28

    What is the CORRECT syntax for DATEADD

    DATEADD(datepart, number, date);

  • 29

    What is the CORRECT syntax for DATEDIFF

    DATEDIFF(datepart, date1, date2);

  • 30

    returns the absolute value of a number

    ABS

  • 31

    returns the smallest integer value that is greater than or equal to a number

    CEILING

  • 32

    returns the largest integer value that is less than or equal to a number

    FLOOR

  • 33

    What is the CORRECT syntax for ABS

    SELECT ABS(-234.5);

  • 34

    What is the CORRECT syntax for ROUND

    ROUND(number, decimal places);

  • 35

    What is the CORRECT syntax for CEILING

    SELECT CEILING(234.1);

  • 36

    What is the CORRECT syntax for FLOOR

    SELECT FLOOR(234.5);

  • 37

    joins two or more strings together

    CONCAT

  • 38

    returns a string in lowercase letters

    LOWER

  • 39

    returns a string in all capital letters

    UPPER

  • 40

    returns a part of a string

    SUBSTRING

  • 41

    returns the number of characters in a string

    LEN

  • 42

    removes the spaces or specific characters from start or end of a string

    TRIM

  • 43

    What is the CORRECT syntax for CONCAT

    SELECT CONCAT(FirstName + ' ' , LastName) FROM Customers WHERE CustomerID = 3446;

  • 44

    What is the CORRECT syntax for LOWER

    SELECT LOWER ('FUNCTIONS');

  • 45

    What is the CORRECT syntax for UPPER

    SELECT UPPER('sql');

  • 46

    What is the CORRECT syntax for SUBSTRING

    SELECT SUBSTRING('SQL Functions', 1, 3);

  • 47

    What is the CORRECT syntax for LEN

    SELECT LEN('SQL Functions');

  • 48

    What is the CORRECT syntax for TRIM

    SELECT TRIM('<!> ' FROM ' <Functions! >');

  • 49

    A _____ clause combines rows from two or more tables based on a common column.

    JOIN

  • 50

    returns rows that have matching values in both tables

    INNER JOIN

  • 51

    returns all rows from the left table and the matched records from the right table. If there is no match from the right side, the result is NULL.

    LEFT JOIN

  • 52

    returns all rows from the right table and the matched records from the left table. If there is no match from the left side, the result is NULL.

    RIGHT JOIN

  • 53

    returns all records when there is a match on either the left or right table. If there is no match, the missing side will contain NULL.

    FULL JOIN

  • 54

    What is the CORRECT syntax for INNER JOIN

    SELECT Customers.CustomerID, Customers.FirstName, Orders.OrderID FROM Customers INNER JOIN Orders ON Customers.CustomerID = Orders.CustomerID;

  • 55

    What is the CORRECT syntax for LEFT JOIN

    SELECT Customers.CustomerID, Customers.FirstName, Orders.OrderID FROM Customers LEFT JOIN Orders ON Customers.CustomerID = Orders.CustomerID;

  • 56

    What is the CORRECT syntax for RIGHT JOIN

    SELECT Customers.CustomerID, Customers.FirstName, Orders.OrderID FROM Customers RIGHT JOIN Orders ON Customers.CustomerID = Orders.CustomerID;

  • 57

    What is the CORRECT syntax for FULL JOIN

    SELECT Customers.CustomerID, Customers.FirstName, Orders.OrderID FROM Customers FULL JOIN Orders ON Customers.CustomerID = Orders.CustomerID;

  • 58

    What is the Output of this Query? SELECT DATEADD(month, 2, '2020/12/14');

    2021-02-14 00:00:00.000

  • 59

    What is the Output of this Query? SELECT DATEADD(quarter, 2, '2020/02/14');

    2020-08-14 00:00:00.000

  • 60

    SELECT DATEADD(hour, 2, DATEADD(minute, 30, '2020/02/14'));

    2020-02-14 02:30:00.000

  • 61

    What is the output of this query? SELECT CEILING(234.1);

    235

  • 62

    What is the output of this query? SELECT FLOOR(234.5);

    234

  • 63

    What is the output of this query? SELECT SUBSTRING('SQL Functions', 1, 3);

    SQL

  • 64

    What is the output of this query? SELECT LEN('SQL Functions');

    13

  • The Contemporary World Mock test (Prelims)

    The Contemporary World Mock test (Prelims)

    Xai Alexandrei Delos Reyes · 58問 · 2年前

    The Contemporary World Mock test (Prelims)

    The Contemporary World Mock test (Prelims)

    58問 • 2年前
    Xai Alexandrei Delos Reyes

    Computing Mock test (Prelims)

    Computing Mock test (Prelims)

    Xai Alexandrei Delos Reyes · 67問 · 2年前

    Computing Mock test (Prelims)

    Computing Mock test (Prelims)

    67問 • 2年前
    Xai Alexandrei Delos Reyes

    Programming Mock Test (Prelims)

    Programming Mock Test (Prelims)

    Xai Alexandrei Delos Reyes · 64問 · 2年前

    Programming Mock Test (Prelims)

    Programming Mock Test (Prelims)

    64問 • 2年前
    Xai Alexandrei Delos Reyes

    Entrepreneurship Mock Test (Prelims)

    Entrepreneurship Mock Test (Prelims)

    Xai Alexandrei Delos Reyes · 23問 · 2年前

    Entrepreneurship Mock Test (Prelims)

    Entrepreneurship Mock Test (Prelims)

    23問 • 2年前
    Xai Alexandrei Delos Reyes

    Computing Mock Test (Midterms) BSIT 107

    Computing Mock Test (Midterms) BSIT 107

    Xai Alexandrei Delos Reyes · 76問 · 2年前

    Computing Mock Test (Midterms) BSIT 107

    Computing Mock Test (Midterms) BSIT 107

    76問 • 2年前
    Xai Alexandrei Delos Reyes

    Math Mock Test (Prelims)

    Math Mock Test (Prelims)

    Xai Alexandrei Delos Reyes · 48問 · 2年前

    Math Mock Test (Prelims)

    Math Mock Test (Prelims)

    48問 • 2年前
    Xai Alexandrei Delos Reyes

    Programming Mock Test (Midterms) BSIT 107

    Programming Mock Test (Midterms) BSIT 107

    Xai Alexandrei Delos Reyes · 52問 · 2年前

    Programming Mock Test (Midterms) BSIT 107

    Programming Mock Test (Midterms) BSIT 107

    52問 • 2年前
    Xai Alexandrei Delos Reyes

    UTS Mock Test (Midterms) BSIT107

    UTS Mock Test (Midterms) BSIT107

    Xai Alexandrei Delos Reyes · 40問 · 2年前

    UTS Mock Test (Midterms) BSIT107

    UTS Mock Test (Midterms) BSIT107

    40問 • 2年前
    Xai Alexandrei Delos Reyes

    Entrepreneurship Mock Test (Midterms) BSIT 107

    Entrepreneurship Mock Test (Midterms) BSIT 107

    Xai Alexandrei Delos Reyes · 38問 · 2年前

    Entrepreneurship Mock Test (Midterms) BSIT 107

    Entrepreneurship Mock Test (Midterms) BSIT 107

    38問 • 2年前
    Xai Alexandrei Delos Reyes

    Contemporary World Mock Test (Midterms) BSIT 107

    Contemporary World Mock Test (Midterms) BSIT 107

    Xai Alexandrei Delos Reyes · 28問 · 2年前

    Contemporary World Mock Test (Midterms) BSIT 107

    Contemporary World Mock Test (Midterms) BSIT 107

    28問 • 2年前
    Xai Alexandrei Delos Reyes

    Math Mocktest (Midterms) BSIT 107

    Math Mocktest (Midterms) BSIT 107

    Xai Alexandrei Delos Reyes · 24問 · 2年前

    Math Mocktest (Midterms) BSIT 107

    Math Mocktest (Midterms) BSIT 107

    24問 • 2年前
    Xai Alexandrei Delos Reyes

    Computer Programming Mocktest (Pre-finals)

    Computer Programming Mocktest (Pre-finals)

    Xai Alexandrei Delos Reyes · 26問 · 2年前

    Computer Programming Mocktest (Pre-finals)

    Computer Programming Mocktest (Pre-finals)

    26問 • 2年前
    Xai Alexandrei Delos Reyes

    Math Mocktest (Pre-Finals)

    Math Mocktest (Pre-Finals)

    Xai Alexandrei Delos Reyes · 19問 · 2年前

    Math Mocktest (Pre-Finals)

    Math Mocktest (Pre-Finals)

    19問 • 2年前
    Xai Alexandrei Delos Reyes

    Computing Mock Test (Pre-finals)

    Computing Mock Test (Pre-finals)

    Xai Alexandrei Delos Reyes · 36問 · 2年前

    Computing Mock Test (Pre-finals)

    Computing Mock Test (Pre-finals)

    36問 • 2年前
    Xai Alexandrei Delos Reyes

    Computing Mock Test Finals

    Computing Mock Test Finals

    Xai Alexandrei Delos Reyes · 26問 · 2年前

    Computing Mock Test Finals

    Computing Mock Test Finals

    26問 • 2年前
    Xai Alexandrei Delos Reyes

    Comprog 2nd sem (prelims) BSIT 205

    Comprog 2nd sem (prelims) BSIT 205

    Xai Alexandrei Delos Reyes · 63問 · 1年前

    Comprog 2nd sem (prelims) BSIT 205

    Comprog 2nd sem (prelims) BSIT 205

    63問 • 1年前
    Xai Alexandrei Delos Reyes

    Discrete Math 2nd sem (prelims) BSIT 205

    Discrete Math 2nd sem (prelims) BSIT 205

    Xai Alexandrei Delos Reyes · 36問 · 1年前

    Discrete Math 2nd sem (prelims) BSIT 205

    Discrete Math 2nd sem (prelims) BSIT 205

    36問 • 1年前
    Xai Alexandrei Delos Reyes

    Art Appreciation (Prelim) BSIT 205

    Art Appreciation (Prelim) BSIT 205

    Xai Alexandrei Delos Reyes · 56問 · 1年前

    Art Appreciation (Prelim) BSIT 205

    Art Appreciation (Prelim) BSIT 205

    56問 • 1年前
    Xai Alexandrei Delos Reyes

    Ethics 2nd sem (Prelims) BSIT 205

    Ethics 2nd sem (Prelims) BSIT 205

    Xai Alexandrei Delos Reyes · 45問 · 1年前

    Ethics 2nd sem (Prelims) BSIT 205

    Ethics 2nd sem (Prelims) BSIT 205

    45問 • 1年前
    Xai Alexandrei Delos Reyes

    STS 2nd Sem (Prelim) BSIT 205

    STS 2nd Sem (Prelim) BSIT 205

    Xai Alexandrei Delos Reyes · 40問 · 1年前

    STS 2nd Sem (Prelim) BSIT 205

    STS 2nd Sem (Prelim) BSIT 205

    40問 • 1年前
    Xai Alexandrei Delos Reyes

    問題一覧

  • 1

    An ________ performs a calculation on a set of values and returns a single value.

    aggregate function

  • 2

    the minimum attribute value encountered in a given column

    MIN

  • 3

    the maximum attribute value encountered in a given column

    MAX

  • 4

    the number of rows containing non-null values

    COUNT

  • 5

    the sum of all values for a given column

    SUM

  • 6

    the arithmetic mean (average) for a specified column

    AVG

  • 7

    The _____ command option is often used with aggregate functions to group the result-set by one or more columns.

    GROUP BY

  • 8

    What is the CORRECT syntax for MIN

    SELECT MIN(column_name) FROM table_name;

  • 9

    What is the CORRECT syntax for MAX

    SELECT MAX(column_name) FROM table_name;

  • 10

    What is the CORRECT syntax for COUNT

    SELECT COUNT(column_name) FROM table_name;

  • 11

    What is the CORRECT syntax for SUM

    SELECT SUM(column_name) FROM table_name;

  • 12

    What is the CORRECT syntax for AVG

    SELECT AVG(column_name) FROM table_name;

  • 13

    What is the CORRECT syntax for GROUP BY

    SELECT columns FROM table_name GROUP BY columns;

  • 14

    Use an _____ to assign a temporary name to the column. It can also be given to tables.

    Alias

  • 15

    What is the CORRECT syntax of ALIAS

    SELECT column_name AS alias FROM table_name;

  • 16

    What is the CORRECT syntax of HAVING

    SELECT columns FROM table_name GROUP BY columns HAVING condition;

  • 17

    The ______ command option is used to restrict the output of a GROUP BY query by applying conditional criteria to the grouped rows.

    HAVING

  • 18

    returns a four-digit year

    YEAR

  • 19

    returns the number of the month

    MONTH

  • 20

    returns the number of the day

    DAY

  • 21

    returns the current date and time

    GETDATE

  • 22

    adds a number of selected time/date periods to a date then returns the date

    DATEADD

  • 23

    returns the difference between two (2) dates

    DATEDIFF

  • 24

    What is the CORRECT syntax for YEAR

    SELECT OrderID, YEAR(OrderDate) AS Year;

  • 25

    What is the CORRECT syntax for MONTH

    SELECT OrderID, MONTH(OrderDate) AS Month;

  • 26

    What is the CORRECT syntax for DAY

    SELECT OrderID, DAY(OrderDate) AS Day;

  • 27

    What is the CORRECT syntax for GETDATE

    SELECT GETDATE();

  • 28

    What is the CORRECT syntax for DATEADD

    DATEADD(datepart, number, date);

  • 29

    What is the CORRECT syntax for DATEDIFF

    DATEDIFF(datepart, date1, date2);

  • 30

    returns the absolute value of a number

    ABS

  • 31

    returns the smallest integer value that is greater than or equal to a number

    CEILING

  • 32

    returns the largest integer value that is less than or equal to a number

    FLOOR

  • 33

    What is the CORRECT syntax for ABS

    SELECT ABS(-234.5);

  • 34

    What is the CORRECT syntax for ROUND

    ROUND(number, decimal places);

  • 35

    What is the CORRECT syntax for CEILING

    SELECT CEILING(234.1);

  • 36

    What is the CORRECT syntax for FLOOR

    SELECT FLOOR(234.5);

  • 37

    joins two or more strings together

    CONCAT

  • 38

    returns a string in lowercase letters

    LOWER

  • 39

    returns a string in all capital letters

    UPPER

  • 40

    returns a part of a string

    SUBSTRING

  • 41

    returns the number of characters in a string

    LEN

  • 42

    removes the spaces or specific characters from start or end of a string

    TRIM

  • 43

    What is the CORRECT syntax for CONCAT

    SELECT CONCAT(FirstName + ' ' , LastName) FROM Customers WHERE CustomerID = 3446;

  • 44

    What is the CORRECT syntax for LOWER

    SELECT LOWER ('FUNCTIONS');

  • 45

    What is the CORRECT syntax for UPPER

    SELECT UPPER('sql');

  • 46

    What is the CORRECT syntax for SUBSTRING

    SELECT SUBSTRING('SQL Functions', 1, 3);

  • 47

    What is the CORRECT syntax for LEN

    SELECT LEN('SQL Functions');

  • 48

    What is the CORRECT syntax for TRIM

    SELECT TRIM('<!> ' FROM ' <Functions! >');

  • 49

    A _____ clause combines rows from two or more tables based on a common column.

    JOIN

  • 50

    returns rows that have matching values in both tables

    INNER JOIN

  • 51

    returns all rows from the left table and the matched records from the right table. If there is no match from the right side, the result is NULL.

    LEFT JOIN

  • 52

    returns all rows from the right table and the matched records from the left table. If there is no match from the left side, the result is NULL.

    RIGHT JOIN

  • 53

    returns all records when there is a match on either the left or right table. If there is no match, the missing side will contain NULL.

    FULL JOIN

  • 54

    What is the CORRECT syntax for INNER JOIN

    SELECT Customers.CustomerID, Customers.FirstName, Orders.OrderID FROM Customers INNER JOIN Orders ON Customers.CustomerID = Orders.CustomerID;

  • 55

    What is the CORRECT syntax for LEFT JOIN

    SELECT Customers.CustomerID, Customers.FirstName, Orders.OrderID FROM Customers LEFT JOIN Orders ON Customers.CustomerID = Orders.CustomerID;

  • 56

    What is the CORRECT syntax for RIGHT JOIN

    SELECT Customers.CustomerID, Customers.FirstName, Orders.OrderID FROM Customers RIGHT JOIN Orders ON Customers.CustomerID = Orders.CustomerID;

  • 57

    What is the CORRECT syntax for FULL JOIN

    SELECT Customers.CustomerID, Customers.FirstName, Orders.OrderID FROM Customers FULL JOIN Orders ON Customers.CustomerID = Orders.CustomerID;

  • 58

    What is the Output of this Query? SELECT DATEADD(month, 2, '2020/12/14');

    2021-02-14 00:00:00.000

  • 59

    What is the Output of this Query? SELECT DATEADD(quarter, 2, '2020/02/14');

    2020-08-14 00:00:00.000

  • 60

    SELECT DATEADD(hour, 2, DATEADD(minute, 30, '2020/02/14'));

    2020-02-14 02:30:00.000

  • 61

    What is the output of this query? SELECT CEILING(234.1);

    235

  • 62

    What is the output of this query? SELECT FLOOR(234.5);

    234

  • 63

    What is the output of this query? SELECT SUBSTRING('SQL Functions', 1, 3);

    SQL

  • 64

    What is the output of this query? SELECT LEN('SQL Functions');

    13