Follow and like us on our Facebook page where we post on the new release subject and answering tips and tricks to help save your time so that you can never feel stuck again.
Shortcut

Ctrl + F is the shortcut in your browser or operating system that allows you to find words or questions quickly.

Ctrl + Tab to move to the next tab to the right and Ctrl + Shift + Tab to move to the next tab to the left.

On a phone or tablet, tap the menu icon in the upper-right corner of the window; Select "Find in Page" to search a question.

Share Us

Sharing is Caring

It's the biggest motivation to help us to make the site better by sharing this to your friends or classmates.

Database Management System

A software package designed to define, manipulate, retrieve and manage data in a database data format, field names, record structure and file structure.

information technology

hierarchical

network

object-oriented

sequel

programming

database

sql

mysql

php

relational databases

cloud databases

hosting

nosql databases

excel

A command which filters a result set to include only records that fulfill a specified condition.

  • WHERE

It returns the natural logarithm of a number to base 2.

  • LOG2

It returns a specified part of a date (as integer).

  • DATEPART

It returns the session settings for a specified option.

  • SESSIONPROPERTY

This is used to restrict the rows that are returned by a query.

  • Where
  • Delete
  • Insert
  • Select

Write a SQL statement that truncates the table "Categories".

  • TRUNCATE TABLE CATEGORIES;

True/False Character values are format sensitive and date values are case sensitive-sensitive.

  • False

It is the term generally used to describe what was done by large mainframe computers from the late 1940's until the early 1980's.

  • Data Processing

This command specifies the values of an INSERT INTO statement.

  • VALUES

An operator used to search for a pattern.

  • LIKE

It converts a string to the upper-case.

  • toUpperCase

Which of the following is the correct example of modifying the column JOB_ID? Change the datatype size to 10.

  • ALTER TABLE EMPLOYEES
  • MODIFY JOB_ID CHAR(10);
  • MODIFY JOB_ID CHAR(10);Which of the following is the correct example of inserting new values to STUDENTS table?
  • ALTER TABLE EMPLOYEES MODIFY JOB_ID CHAR(10);

It returns the position of the first occurrence of a string in another string.

  • Instr
  • Field
  • Concat
  • Format

Are said to exhibit physical data independence if they do not depend on the physical schema.

  • Application Program

The UPDATE constraint ensures that all values in a column are unique.

  • True
  • False

It is a unit of data – is a symbol or a set of symbols which is used to represent something.

  • DATUM

A function that returns the number of days between two date values.

  • DATEDIFF

It returns the smallest integer value that is >= to a number.

  • CEIL

A function that returns a string of the specified number of space characters.

  • Space

The WHERE clause is not only used in SELECT statement, it is also used in UPDATE, DELETE statement, etc.

  • True
  • False

This is used to in conditions that compare one expression with another value or expression.

  • Subtraction
  • Comparison
  • Logical Condition
  • Add

A command that combines the result set of two or more SELECT statements or allows duplicate values.

  • UNION ALL

This is use to create expression with number and date values.

  • MDAS operator
  • Numerical Values
  • Arithmetic expression
  • Logical Condition

The command that adds, deletes or modifies columns in a table.

  • ALTER TABLE

An operator used to return all rows that are common to multiple queries.

  • Insert
  • Union
  • Intersect
  • Position

Reversing the order of the intersected tables does not alter the result.

  • True
  • False

Write the SQL statement that deletes the table "Shippers".

  • DROP TABLE

The rows in the first query that are not present in the second query.

  • Intersect
  • Minus
  • Union All
  • Union

It returns the current database system UTC date and time.

  • GETUTCDATE

An alter statement that is used to delete an existing column in the table.

  • ADD
  • DROP
  • MODIFY
  • DELETE

An operator used to specify multiple possible values for a column.

  • >
  • like
  • =
  • in

It subtracts a time interval from a datetime and then returns the time/datetime.

  • SUBTIME

It returns 1 or 0 depending on whether an expression is NULL.

  • ISNULL

Write the SQL statement that will update the contactname to "Juan" for all records where country is "Mexico".

  • UPDATE

It compares two expressions and returns null if they are equal. Otherwise, the first expression is returned.

  • NULLIF

It logically represents subsets of data from one or more table.

  • Index
  • View
  • Synonym
  • Table

Which of the following is not true about writing SQL statements?

  • Clauses are usually placed on separate lines for readability and ease of editing.
  • SQL statements are not case sensitive.
  • Keywords cannot be split across lines or abbreviated.
  • Indents should be used to make code more readable.

This operator is used to return all rows from multiple queries or multiple tables.

  • Union All
  • Union
  • Minus
  • Intersect

The command that deletes the data inside a table, but not the table itself.

  • TRUNCATE TABLE

It returns the value of a number raised to the power of another number.

  • POWER

It returns the position of a string within a list of strings.

  • FIND IN SET

The command to delete a view.

  • DROP VIEW

This is used to perform wildcard searches of valid search string values.

  • Between
  • Comparison
  • Like
  • IN

A command that updates a view.

  • UPDATE VIEW

A numeric function that returns the number of records returned by a select query.

  • COS
  • ATAN
  • CEIL
  • COUNT

A command which deletes a table in the database.

  • DROP TABLE

It is a collection of interrelated data and a set of programs to access those data.

  • Database Management System

The DROP table command also adds and deletes various constraints in a table.

  • True
  • False

The command specifies the values of an INSERT INTO statement.

  • VALUES

It converts a value to a binary string.

  • BINARY

Which of the following is the correct example of updating the LASTNAME to ‘REYES’ of all students from STUDENTS table whose STUD_ID is equal to 01020564?

  • UPDATE STUDENTS
  • SET STUD_ID = 01020564;
  • WHERELASTNAME = ‘REYES’;
  • UPDATE STUDENTS SET LASTNAME = ‘REYES’ WHERE STUD_ID = 01020564;

It compares two strings.

  • STRCMP
  • MID
  • RPAD
  • SUBSTR

The NULL values or blank data in the report are not ignored during duplicate checking.

  • True
  • False

A function that returns e raised to the power of a specified number.

  • EXP

Which of the following is the correct example inserting a new value to STUDENTS table that will only add new data to STUD_ID and LASTNAME? The stud_id is 10 and lastname is 'CRUZ' and the rest of the column is set to NULL.

  • INSERT INTO STUDENTS VALUES (10,'CRUZ',NULL,NULL);
  • INSERT INTO STUDENTS VALUES (10,'CRUZ','NULL','NULL');
  • INSERT INTO STUDENTS TABLE VALUES (10,'CRUZ','NULL','NULL');
  • INSERT INTO STUDENTS (10,'CRUZ',NULL,NULL);

It returns the number of days between a date and date "0000-00-00".

  • TO DAYS

A syntax used to create a UNIQUE constraint on the "ID" column when the table is already created.

  • CREATE TABLE

It is an association among several entities.

  • RELATIONSHIP

It adds a time/date interval to a date and then returns the date.

  • DATE SUB
  • DATE FORMAT
  • DATE ADD
  • DAYNAME

It returns the character based on the ASCII code.

  • Char

It returns a date from a numeric datevalue.

  • FROM DAYS

A numeric function that returns the smallest integer value that is >= to a number.

  • CEILING

The DATE ADD returns the number of days between two date values.

  • True
  • False

The command which deletes the data inside a table, but not the table itself.

  • TRUNCATE TABLE

The IFNULL returns a value if a condition is TRUE, or another value if a condition is FALSE.

  • True
  • False

A command that combines the result set of two or more SELECT statements (allows duplicate values).

  • UNION ALL

It returns the current date and time.

  • CURRENT TIMESTAMP

This is used to test for values in a specified set of values.

  • Comparison
  • Like
  • Between
  • IN

It converts a number from one numeric base system to another.

  • CONV

The command which combines the result set of two or more SELECT statements or only a distinct values.

  • UNION

It returns the position of a pattern in a string.

  • PATINDEX

The command used to create a new table in the database.

  • CREATE TABLE

A command that deletes the data inside a table, but not the table itself.

  • TRUNCATE TABLE

Write the SQL statement that selects all the customers from "Mexico" in the "Customers" table.

  • WHERE

It subtracts a time/date interval from a date and then returns the date.

  • DATE_SUB

A function that adds two or more expressions together.

  • CONCAT

A function that returns the maximum value in a set of values.

  • MAX

It returns the AUTO_INCREMENT id of the last row that has been inserted or updated in a table.

  • LAST INSERT ID
  • NULLIF
  • SESSION USER
  • IFNULL

A copy of an existing table can also be created using CREATE TABLE.

  • True
  • False

The function repeat returns the position of the first occurrence of a substring in a string.

  • True
  • False

It returns the arc tangent of one or two numbers.

  • ATAN

It returns the remainder of a number divided by another number.

  • MOD

True/False. This symbol % denotes zero or many characters.

  • True

It checks an expression and returns 1 if it is a valid date, otherwise 0.

  • ISDATE

The pow function returns the value of a number raised to the power of another number.

  • True
  • False

It returns the user name and hostname for the MySQL account that the server used to authenticate the current client.

  • CURRENT USER

It removes leading and trailing spaces from a string.

  • Ucase
  • Upper
  • Rtrim
  • Trim
Comments
Buy Me Coffee

To keep up this site, we need your assistance. A little gift will help us alot.

Donate

- The more you give the more you receive.

Related Subject

Object Oriented Programming Laboratory

Mobile Programming

Network Security

Mobile Application Design and Development

Managing Information and Technology

Management Information Systems

Mobile Application Design and Development 2

Mail and Web Services

Living in the Information Technology Era

Information Technology Capstone Project

Information Technology Practicum

Intro to Hardware Description Language

Introduction to Computing

Introduction to Human Computer

Introduction to Information Systems

Introduction to Multimedia

Internet Marketing and Entrepreneurship

Integrative Programming and Technology 2

Internet Technology in Real Estate

Information Assurance and Security 2

Information Assurance and Security 3

Information Security and Management

Information Systems Operations and Maintenance

Fundamentals of Investigation and Intelligence

Fundamentals of Database System

Digital Imaging

Data Communications and Networking 2

Data Communications and Networking

Cyber Security: Theories and Practice

Data Structures and Algorithms

Computer Fundamentals

Chemistry for Engineers

Animation Project

Load Testing

3D Game Art Development

Auditing and Assurance Concepts and Applications

System Administration and Maintenance

Linux Administration

Integrative Programming and Technology

Data Communications and Networking 4

Current Trends and Issues

Applied Business Tools and Technologies

Software Engineering

Computer Programming

Systems Integration and Architecture

Application Lifecycle Management

Data Communications and Networking 3

Information Assurance and Security

Principles of Operating System and its Application

Southwest Airlines Overview

The Science of SpaceX Satellites

Vibrant Triangle Indian Community

Intrusion Detection System

Computer System

Network Administration

Computer Information Systems

Unified Functional Testing

Moana 2

Amanda The Adventurer 2 Game

Quantum Computers

Programming vs Coding

Origin of Women in Computing

Software Development

Mechatronics

Computer Numerical Control

Computer Science

Web Application Development

Web Systems Technologies

Web Development

Geographic Information Systems


Show All Subject
Affiliate Links

Shopee Cashback Voucher

Temu $0 Shipping Fee

Amazon 75% Off Discounts