Question

In: Computer Science

the following question is based on the table information below. Assume that the data is populated...

the following question is based on the table information below.

Assume that the data is populated with records: CREATE TABLE teachers ( emp_id bigserial, first_name varchar(25), last_name varchar(50), school varchar(50), hire_date date, salary numeric); SELECT first_name, last_name, school, salary FROM teachers WHERE hiredate > '2008-01-01' ORDER BY last_name ASC;

Question 1) Will this query return an error?

Question 2) If there is an error, what is causing the error? if there is not an error, leave blank.

Solutions

Expert Solution

1) yes the above query will return error

Check below images for Explanation

For ur statemets this is output:

2) In SELECT statement "hiredate" was written as without underscore but in CREATE TABLE statement it wrriten as "hire_date".

after removing error output be like

if there is any concern please mention in comments.

thank you.

if u get the correct data please like


Related Solutions

The data in the table below are for the small country of Xanadu. Assume that the...
The data in the table below are for the small country of Xanadu. Assume that the economy is originallly producing combination C. A B C D E F   Capital Goods 0 20 28 35 39 41   Capital Goods 2   Consumer Goods 25 20 15 10 5 0
Use the data given below to answer the following question(s). The following table exhibits the age...
Use the data given below to answer the following question(s). The following table exhibits the age of second-hand furniture and the corresponding prices. Use the table to answer the following question(s). (Hint: Use scatter diagram and XLMiner where necessary.) Number of Years Values 2 1856 14 348 7 1020 5 1530 10 349 8 780 9 653 3 1830 10 750 6 1300 Q1. What is the relationship between the age of the furniture and their values? _ _________________ Q2....
Fill in the table below, using the information on this handout, based on what is best...
Fill in the table below, using the information on this handout, based on what is best for the client. Jake (age 47) and Sally (age 37) are married and have three children, ages 4, 7, and 10. The W2 table is for the 2019 income tax year. Assume tax laws in 2019 are as described in the textbook. They will file as Married Filing a Joint Return. If no information is given about something, assume zero, e.g., zero contributions to...
The data in the table below assume that with the same quantity of resources, both Australia...
The data in the table below assume that with the same quantity of resources, both Australia and Philippines produce food and computers. Australia can make 1,000 computers or 2,000 units of food a day, and Philippines can make 200 computers or 1,200 units of food in a day. Amount Produced of Each Good per Day per Country Computers Food Australia 1,000 2,000 Philippines 200 1,200 1. Illustrate the production possibilities (PPC) for both countries 2. Which country has an absolute...
Question 12 Please answer the following set of questions, based on the information provided below. The...
Question 12 Please answer the following set of questions, based on the information provided below. The data listed below give information for 10 middle-level managers at a particular company. The first column is years of experience [X] and the second column is annual salary (in thousands) [Y]. We are going to examine the relationship between salary in thousands [Y] and years of experience[X]. Below is the regression output. Manager#     (X)     (Y) 1 xx 66 2 xx 69 3...
Question 15 Please answer the following set of questions, based on the information provided below. A...
Question 15 Please answer the following set of questions, based on the information provided below. A service company is curious to know whether customer age is crucial in deciding to subscribe. The company has collected a random sample of 1000 people, and asked everyone whether he or she would subscribe to the service. The company knows which age group the person falls into: under 18 years of age, 18 - 29 years of age, 30-45 years of age and 46...
Question 14 Please answer the following set of questions, based on the information provided below. A...
Question 14 Please answer the following set of questions, based on the information provided below. A service company is curious to know whether customer age is crucial in deciding to subscribe. The company has collected a random sample of 1000 people, and asked everyone whether he or she would subscribe to the service. The company knows which age group the person falls into: under 18 years of age, 18 - 29 years of age, 30-45 years of age and 46...
The information in the table below shows the total market demand for Good X. Assume the...
The information in the table below shows the total market demand for Good X. Assume the marginal cost of providing Good X is zero. Quantity Price 4 $ 40 5 $ 35 6 $ 30 7 $ 25 8 $ 20 9 $ 15 10 $ 10 Refer to the table above. What is the Nash Equilibrium market quantity produced in a duopoly market? 8 5 7 6 4
Canadian Bacon Inc. financial statements are presented in the table below. Based on the information in...
Canadian Bacon Inc. financial statements are presented in the table below. Based on the information in the table, and using a 365-day year, calculate Days payables outstanding (Payables conversion period). Round the answers to two decimal places Balance Sheet December 31, 2011 Cash and marketable securities $143,000 Accounts payable $278,000 Accounts receivable $354,000 Notes payable $87,000 Inventories $672,000 Accrued expenses $65,000 Prepaid expenses $12,500 Total current liabilities $430,000 Total current assets $1,181,500 Long-term debt $284,000 Gross fixed assets $1,675,000 Par...
Canadian Bacon Inc. financial statements are presented in the table below. Based on the information in...
Canadian Bacon Inc. financial statements are presented in the table below. Based on the information in the table, and using a 365-day year, calculate cash conversion cycle Round the answers to two decimal places Balance Sheet December 31, 2013 Cash and marketable securities $112,000 Accounts payable $211,000 Accounts receivable $325,000 Notes payable $51,500 Inventories $426,000 Accrued expenses $50,100 Prepaid expenses $10,700 Total current liabilities $312,600 Total current assets $873,700 Long-term debt $225,000 Gross fixed assets $1,514,000 Par value and paid-in-capital...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT