English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Guys i'm really confused here.

How do i create table named MANAGERS which contains only empno,ename and job columns of the original emp table for all the employess who are mangers?

Thanks

2006-11-24 13:58:44 · 6 answers · asked by frozen 2 in Computers & Internet Programming & Design

sql....oracle

2006-11-24 14:09:43 · update #1

6 answers

I would suggest creating a view rather than a separate table. You can then query the view as you would a table:

create or replace view MANAGERS
AS
select empno,ename,job
from emp
where ......... (however you determine if someone is a manager)

2006-11-24 14:12:31 · answer #1 · answered by ebrosch 2 · 0 0

CREATE TABLE managers AS
SELECT enpno, ename, job
FROM emp
WHERE upper(job) = 'MANAGERS';

By the way, capitalizations are not critical to the functions. It's just standard to capitalize commands.

2006-11-24 14:15:37 · answer #2 · answered by tkquestion 7 · 1 0

If you are in Word go to "tables" then "insert." It will ask you how many columns and rows. Just put in the amount you need or more if you just want to fill the page. Then put in the headings you need.

Hope that helps.

2006-11-24 14:03:24 · answer #3 · answered by phy333 6 · 1 0

In MS-sq. Server Integer's don't have sizes as such. this is labored out from the records style. in case you pick to alter the dimensions use Bigint, smallint or tinyint. you may wish the not NULL in case you have not have been given a default value...

2016-10-13 01:34:35 · answer #4 · answered by ? 4 · 0 0

what application are you using? i mean programming language. there are different steps depending on what language you are using.

2006-11-24 14:06:30 · answer #5 · answered by bReAd-WiNnEr 3 · 1 0

what program are u useing and what are u trying to do help us

2006-11-24 14:11:19 · answer #6 · answered by hard headed diabectic 2 · 0 0

fedest.com, questions and answers