Question

provide examples for the following: Query Language: SQL Queries: Boolean Logic:

provide examples for the following:

Query Language:

SQL Queries:

Boolean Logic:

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

1.Query languages

  • Query languages are used to retrieve information stored in a database or from an information system.
  • examples of query languages are
    • SQL
    • SQL or structured query language is a query language used to retrieve information from a relational database such as Oracle.
    • XQuery
    • XQuery or XML query language is used to retrieve information from web-based documents

2. SQL queries

  • SQL queries are used to retrieve and manage information from a relational database.
  • Examples for SQL queries are
    • SELECT * STUDENT (This is a query that retrieves and display all the information stored in the table named STUDENT)
    • SELECT * FROM EMPLOYEE WHERE salary >10000 (Selects all the details from table employee where the salary of employee is greater than 10000
    • SELECT NAME FROM STUDENT WHERE RANK=1 (Select the name of student who is in the rank 1)

3.Boolean Logic

  • In Boolean logic, all the operations are based upon two kinds of values, either TRUE or FALSE.
  • The basic examples of boolean logic are the basic truth tables for Boolean operators AND, OR and NOT.
  • AND operator (A.B)
A B A.B
T T T
T F F
F T F
F F F
  • OR operator A+B
A B A+B
T T T
T F T
F T T
F F F
  • NOR OPERATOR (A')
A A'
T F
F T
Add a comment
Know the answer?
Add Answer to:
provide examples for the following: Query Language: SQL Queries: Boolean Logic:
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
  • Define and describe the importance of SQL queries. Provide examples of two SQL queries in your...

    Define and describe the importance of SQL queries. Provide examples of two SQL queries in your Discussion Board post and explain the expected results from the SQL query

  • 2. SQL queries (40 points total, 5 points each query) Write SQL query statements to query...

    2. SQL queries (40 points total, 5 points each query) Write SQL query statements to query the following Hotel Room Booking Database Tables. "cid" is Customer ID. "rid" is Room ID. "bid" is Booking ID. "dob" means Date of Vwwww Birth; "beds" means the number of beds in the room which is normally 1 or 2 beds. "DueDate" and "DueAmount" are the payment due dates and due amounts of this booking. Customers fname name phone email cid dob zipcode Rooms...

  • SQL Queries – in this assignment you will be asked to create several SQL queries relating...

    SQL Queries – in this assignment you will be asked to create several SQL queries relating to the Sakila database that we installed in class. You may freely use DBeaver to create these queries, but I will expect your solution to show me the SQL code to answer or complete the tasks below. Write a query that produces the last name, first name, address, district, and phone number for every customer in the customer table. (You don’t need to include...

  • Express the following queries in SQL. Only standard SQL syntax is allowed. Each query should be...

    Express the following queries in SQL. Only standard SQL syntax is allowed. Each query should be answered in a single SQL statement: 1. Find the name of suppliers that are located in Mumbai. 2. Find the name of suppliers and the names of parts they sell. List the result in descending order suppliers name. 3. Find the names of parts that are sold by exactly two suppliers. 4. Find the names of parts that are sold by all suppliers. 5....

  • EXERCISE Provide working SQL DML statements for the following database schema and queries CUSTOMER (ID, Type,...

    EXERCISE Provide working SQL DML statements for the following database schema and queries CUSTOMER (ID, Type, Firstname, Lastname, Address, City) INVENTORY(ID, ItemName, Type, MadeInStore, SupplierName, DailyAverageSold, Price) ORDERS(ID, Customer_FK, Item_FK, Quantity, DeliveryDate) 16. Find the total amount due for each order, where the total is at least $70 . Show: order id, lastname, and total-amount . Hint: variation of previous query 17. Find the total amount due for each order placed by a customer that is a restaurant owner, total...

  • SQL Server is Microsoft’s popular database engine that uses the Structured Query Language (SQL) to accept...

    SQL Server is Microsoft’s popular database engine that uses the Structured Query Language (SQL) to accept requests for data access. Learn about SQL Server’s backup strategies. Mention the types of data corruption that might occur in an environment using SQL Server. Discuss some database backup requirements that a database administrator should consider when devising a backup strategy for her organization’s DBMS. Describe the different types of backup techniques supported by SQL Server. Conclude by explaining why it is essential to...

  • Write the following queries in the WPC database and save these queries as Query 15 and...

    Write the following queries in the WPC database and save these queries as Query 15 and Query 16 respectively. Show the ProjectID, ProjectName, Department, Department Phone for all the projects run by the Finance Department. Display EmployeeNumber, FirstName, LastName for employees whose EmployeeNumber is greater than or equal to 3 but less than or equal to 9 and last name contains the phrase “on”.

  • Database For this lab you will be using SQL SELECT statements to query your database tables....

    Database For this lab you will be using SQL SELECT statements to query your database tables. You will be turning in the results of the following queries: 1. List all Patients and what Bed they are assigned to 2. List all patients who had Treatments and what Treatment they received 3. List all patients who had tests and what Test they had 4. List the employees (doctors, nurses, etc.) who assisted each patient. 5. List all patients in alphabetical order...

  • please write a list of sql queries for these exercises 5. Display a list of countries...

    please write a list of sql queries for these exercises 5. Display a list of countries whose official language is English. Show the names of the countries in alphabetical order.

  • 1. For each query, there are one or more things to do. Some of these queries...

    1. For each query, there are one or more things to do. Some of these queries use SQL constructs we haven't covered in class but that you should be able to figure out the meaning of. a. SELECT C.custid, C.companyname FROM Sales.Customers AS C LEFT OUTER JOIN Sales.Orders as O ON C.custid = O.custid WHERE O.orderid IS NULL Provide the result set generated by this query. One of the result rows should be (22, Customer DTDMN). What does this tell...

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