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!

Latest Activity

Francis Pouler Francis Pouler's profile changed 54 minutes ago
Francis Pouler Francis Pouler joined Oracle Community. Leave a Comment for Francis Pouler. 1 hour ago
Rajeeb Dutta Rajeeb Dutta left a comment for DEVendra Gulve 1 hour ago
Rajkumar Singh Rajkumar Singh joined Oracle Community. Leave a Comment for Rajkumar Singh. 2 hours ago
Umesh Joshi and DEVendra Gulve are now friends 2 hours ago
DEVendra Gulve DEVendra Gulve left a comment for Umesh Joshi 2 hours ago
Umesh Joshi Umesh Joshi joined Oracle Community. Leave a Comment for Umesh Joshi. 2 hours ago
DEVendra Gulve DEVendra Gulve added the blog post 'Data flow for Order - to - Cash cycle' 3 hours ago
Ram K Ram K joined the group Oracle Contractors 5 hours ago
Ram K Ram K joined Oracle Community. Leave a Comment for Ram K. 5 hours ago
TongucY TongucY commented on the event Blogger Meetup - Oracle OpenWorld 2008 6 hours ago
TongucY TongucY decided to attend the event Blogger Meetup - Oracle OpenWorld 2008 6 hours ago
Chris Muir Chris Muir commented on the event Blogger Meetup - Oracle OpenWorld 2008 6 hours ago
Chris Muir Chris Muir decided to attend the event Blogger Meetup - Oracle OpenWorld 2008 6 hours ago
DEVendra Gulve DEVendra Gulve's profile changed 6 hours ago
DEVendra Gulve DEVendra Gulve left a comment for Rajeeb Dutta 7 hours ago

Oracle Community Badge

Spread the word. Get your own Oracle Community badge for your website or MySpace page. (Get Code)

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

Report an Issue  |  Feedback  |  Privacy  |  Terms of Service