הצטרפו לקבוצות שלנו לקבלת עדכונים מרוכזים פעם בשבוע:

ווטסאפ:
http://wa.dwh.co.il
טלגרם:
http://telegram.dwh.co.il

בעיה אתגרית - תתמודדו איתה?

More
16 years 4 months ago #4312 by Or Pelach
שלום לכולם,

להלן בעיה אתגרית.
אשמח לקבל פתרונות יצירתיים

צרו טבלה עם עמודה Id (number)
תכניסו לתוכה לדוגמה 5 ערכים
1
2
3
4
5

תצרו בבקשה שילוב של כל ה-3 הקומבינציות של distinct האפשריות. תוצאה צריכה להיות :
123
124
125
134
135
145
234
235
245
345

בברכה,
אור

Please התחברות to join the conversation.

More
16 years 4 months ago #4314 by GeriReshef
Create Table T_Num(N Int);
Insert Into T_Num Values(1);
Insert Into T_Num Values(2);
Insert Into T_Num Values(3);
Insert Into T_Num Values(4);
Insert Into T_Num Values(5);

Select *
From T_Num T1
Inner Join T_Num T2
On T1.N<T2.N
Inner Join T_Num T3
On T2.N<T3.N;

Please התחברות to join the conversation.

More
16 years 4 months ago #4322 by Or Pelach
יפה.
האם יש פתרונות אחרים?

Please התחברות to join the conversation.

Moderators: Laromme Barr
Time to create page: 0.197 seconds