Dataset Viewer
Auto-converted to Parquet Duplicate
input
stringclasses
7 values
output
stringclasses
7 values
create database Bookstore create table Authors( AuthorID integer not null primary key check(AuthorID>0), AuthorFIO varchar(40) not null ); create table Books( Cipher integer not null primary key check(Cipher>0), BookName varchar(4000) not null, BookTheme varchar(30) not null check(BookTheme in('Любовь','Дружба','Сме...
select BookName, BookGenre from Books order by BookGenre, BookName desc;
create database Bookstore create table Authors( AuthorID integer not null primary key check(AuthorID>0), AuthorFIO varchar(40) not null ); create table Books( Cipher integer not null primary key check(Cipher>0), BookName varchar(4000) not null, BookTheme varchar(30) not null check(BookTheme in('Любовь','Дружба','Сме...
select * from Сirculation where NumReceivedCopies<10 and BookСipher=6;
create database Bookstore create table Authors( AuthorID integer not null primary key check(AuthorID>0), AuthorFIO varchar(40) not null ); create table Books( Cipher integer not null primary key check(Cipher>0), BookName varchar(4000) not null, BookTheme varchar(30) not null check(BookTheme in('Любовь','Дружба','Сме...
select * from PublishingHouse where TradeMargin between 0.1500 and 0.3333;
create database Bookstore create table Authors( AuthorID integer not null primary key check(AuthorID>0), AuthorFIO varchar(40) not null ); create table Books( Cipher integer not null primary key check(Cipher>0), BookName varchar(4000) not null, BookTheme varchar(30) not null check(BookTheme in('Любовь','Дружба','Сме...
select * from Bookstore.Authors where AuthorFIO like '%ов';
create database Bookstore create table Authors( AuthorID integer not null primary key check(AuthorID>0), AuthorFIO varchar(40) not null ); create table Books( Cipher integer not null primary key check(Cipher>0), BookName varchar(4000) not null, BookTheme varchar(30) not null check(BookTheme in('Любовь','Дружба','Сме...
select count(*) as СirculationCount, sum(NumReceivedCopies) as AllReceivedCopies, min(NumUnsoldCopies) as MinUnsoldCopies, max(NumUnsoldCopies) as MaxUnsoldCopies, avg(PurchasePrice) as AvgPurchasePrice from Сirculation;
create database Bookstore create table Authors( AuthorID integer not null primary key check(AuthorID>0), AuthorFIO varchar(40) not null ); create table Books( Cipher integer not null primary key check(Cipher>0), BookName varchar(4000) not null, BookTheme varchar(30) not null check(BookTheme in('Любовь','Дружба','Сме...
select DeliveryDate, count(*) as Counts, sum(PurchasePrice) as Prices from Сirculation where NumUnsoldCopies>3 group by DeliveryDate having sum(PurchasePrice)>110000 order by DeliveryDate;
create database Bookstore create table Authors( AuthorID integer not null primary key check(AuthorID>0), AuthorFIO varchar(40) not null ); create table Books( Cipher integer not null primary key check(Cipher>0), BookName varchar(4000) not null, BookTheme varchar(30) not null check(BookTheme in('Любовь','Дружба','Сме...
select [BookTheme],[BookGenre], count(*) as Counts from [dbo].[Books] group by [BookTheme],[BookGenre] with rollup;
README.md exists but content is empty.
Downloads last month
3