Create a table and call it books

Assignment Help Database Management System
Reference no: EM132075909

You need help with this database creation.

Create a database and call it csci2006. Use the following command:

create database csci2006;

Create a table and call it books. Use the following command:

create table books (isbn int not null primary key, title varchar(255), edition int, copyright varchar(255));

Create a table and call it author using the following command:

create table author (authorId int not null primary key, firstName varchar(255), lastName varchar(255));

Add five records to each table.

Here is an example of how to insert a record into books table:

insert into books (isbn, title, edition, copyright) values (234, "Java", 3, 2011);

What will be the result of the following queries?

select * from books;

select title from books;

select edition, copyright from books;

select * from books where title="Java";

select * from books where isbn > 234;

update books set title="javaScript" Where isbn = 234;

delete from books where isbn=234;

Reference no: EM132075909

Questions Cloud

What constitutes a useful report : Assignment Purpose: To learn what constitutes a useful report.
How many years did sam own the certificate of deposit : Sam purchased a certificate of deposit yielding 5% annually for $6,000. Today, it matured for $12,004.25. Approximately how many years did Sam own.
Brainstorm a proposed business change : Choose an industry and an organization with which you are familiar and brainstorm a proposed business change that you feel the organization should implement.
Discuss whether michigan violated any of paul : Discuss whether Michigan violated any of Paul's constitutional rights.
Create a table and call it books : create database csci2006; Create a table and call it books. Use the following command:
What would be the present value of willis payments : If the current interest rate is 10%, what would be the present value of Willis' payments (compounded semi-annually)
What is the expected return on the stock : Sabina Resources has a claim in the Hackett River of the Northwest Territories that is estimated to contain some 47 million tons of ore rich in.
Compute the budget variance for july : Faessler Corporation applies overhead to products based on machine-hours. Compute the budget variance for July. Show your work
When is the default constructor not created by java : When is the default constructor not created by Java? Classes in which packages do you not need to import?

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd