Oracle Community

The social network for Oracle people

Manikandan Kannan

create won column

i have last_name,department_id from employees table and i need create a third column with this it should contain the co-workers of each employees

Reply to This

Replies to This Discussion

Hello. third column, will be null or not null??

Not null and default value
alter table employees add co_workers varchar2(30) default ‘12345678901234567890′ not null;

Reply to This

Jesus,

If you respond to people who are too lazy to read the manual, you only encourage them to continue being lazy. I ask a lot of questions in the Oracle forums, but only after I've researched the topic through hardcopy and online reference sources.

At least that's my opinion. I'd be happy to hear others' thoughts on the subject.

- Stew

Reply to This

My thought is that in addition to answering the question like Jesus did, or even answering with RTFM, a link to the documentation may be helpful. For example, in this case, the SQL Language Reference, or even the whole DB documentation set.

However, there is something flawed in Manikandan's question in the first place. I believe that storing "co-workers" in "won column" is not the right design.

Reply to This

Eddie,

Sounds like a plan, from now on when I see an incredibly basic question (as this seems to be), I'll reply with "RTFM" and include the link to the docset, so they can't say I wasn't helpful!

Given his question, do you think he's ready for following the Third Normal Form rule??? ;-)

Reply to This

Hi Stew.

I just tried to help but your comment is absolutely correct. Manikandan has to search his doubts and if he don't find any answer he make a post.

Reply to This

Wow tough crowd!! Nothing like a bit of tough love.

How about a bit of prodding though? I see a deeper learning opportunity here.

Following Stew's comment.

Mani (if I may be familiar), is wanting to add a column with co-workers. To me this denormalizes his application.

1. What make one a co-worker? Consider the following -
A. Department - already there
B. Company - We could possibly assume this is for one company, if not see C
C. Sub-department/Work group - Make an additional table and add a work group column to the table. (

Just a different line of thinking and extra RTFMing and experimenting.

Russell

Reply to This

Ran out of time to edit :)

Third Normal Form - Wikipedia

Reply to This

RSS

About Oracle Community

Eddie Awad Eddie Awad created this social network on Ning.

Create your own social network!

Chat

Loading Chat...

Latest Activity

Surachart Opun Surachart Opun left a comment for Hans Forbrich 1 hour ago
Arie Yuster Arie Yuster joined Oracle Community. Leave a Comment for Arie Yuster. 1 hour ago
srinu srinu joined Oracle Community. Leave a Comment for srinu. 2 hours ago
Pravin R. Baldawa Pravin R. Baldawa's profile changed 3 hours ago
David Hovda and Jason Williams are now friends4 hours ago
David Hovda Jason Williams
Manal Khayyat Manal Khayyat left a comment for Raed Aziz 5 hours ago
RAFIKUL ISLAM RAFIKUL ISLAM left a comment for Manal Khayyat 5 hours ago
Manal Khayyat Manal Khayyat left a comment for RAFIKUL ISLAM 5 hours ago
RAFIKUL ISLAM RAFIKUL ISLAM left a comment for Manal Khayyat 5 hours ago
Sanks and Vimal are now friends6 hours ago
Sanks Vimal
Jason Williams Jason Williams's profile changed 7 hours ago
Jason Williams Jason Williams joined 4 groups. View Groups7 hours ago
Jason Williams Jason Williams joined Oracle Community. Leave a Comment for Jason Williams. 7 hours ago
Jason Williams Jason Williams's profile changed 7 hours ago

Oracle Community Badge

Disclaimer

OracleCommunity.net is not affiliated with or supported by Oracle Corporation.

© 2008   Created by Eddie Awad on Ning.   Create your own social network

Badges  |  Report an Issue  |  Privacy  |  Terms of Service