//SQL// Given this script select setseed(0.1234); create table observed_demand as ( select (cast(trunc(random() * 7) as

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

//SQL// Given this script select setseed(0.1234); create table observed_demand as ( select (cast(trunc(random() * 7) as

Post by answerhappygod »

//SQL//
Given this script
select setseed(0.1234);createtable observed_demand as (select (cast(trunc(random()* 7) as int))+ date '8/1/2013' as myDate ,cast(trunc(random()* 500 + 1) asint) as amountfrom generate_series(1,20)order by myDate);
Write a SQL query that will find the total demand on day'2013-08-05'
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply