עוץליגוץלי
New member
שליפה לא רצופה
אמ'לק - אני מעוניין לקרוא חלק מהנתונים באופן לא רצוף מטבלה על מנת לקבל "מושג".
יצרתי טבלא שנראית בערך כך:
הזנתי נתונים:
אני מעוניין להגיש שאילתה, שתוצאתה תהיה כך:
ז.א. - כל נתון שני של כל pointID בנפרד. (סדר המיון לא משנה ברגע זה).
רעיון לכוון?
אמ'לק - אני מעוניין לקרוא חלק מהנתונים באופן לא רצוף מטבלה על מנת לקבל "מושג".
יצרתי טבלא שנראית בערך כך:
קוד:
CREATE TABLE collectedData
(id INTEGER PRIMARY KEY,
pointID nvarchar,
value double)
הזנתי נתונים:
קוד:
insert into test2 (pointID, value)
VALUES
('point1',0), ('point2',0), ('point3',0),
('point1',1), ('point2',1), ('point3',1),
('point1',2), ('point2',2), ('point3',2),
('point1',3), ('point2',3), ('point3',3),
('point1',4), ('point2',4), ('point3',4),
('point1',5), ('point2',5), ('point3',5),
('point1',6), ('point2',6), ('point3',6),
('point1',7), ('point2',7), ('point3',7),
('point1',8), ('point2',8), ('point3',8),
('point1',9), ('point2',9), ('point3',9),
('point1',10), ('point2',10), ('point3',10),
('point1',11), ('point2',11), ('point3',11),
('point1',12), ('point2',12), ('point3',12),
('point1',13), ('point2',13), ('point3',13),
('point1',14), ('point2',14), ('point3',14),
('point1',15), ('point2',15), ('point3',15),
('point1',16), ('point2',16), ('point3',16),
('point1',17), ('point2',17), ('point3',17),
('point1',18), ('point2',18), ('point3',18),
('point1',19), ('point2',19), ('point3',19)
קוד:
ID, pointID, value
1, point1, 0
2, point2, 0
3, point3, 0
7, point1, 2
8, point2, 2
9, point3, 2
13, point1, 4
14, point2, 4
15, point3, 4
19, point1, 6
20, point2, 6
21, point3, 6
25, point1, 8
26, point2, 8
27, point3, 8
31, point1, 10
32, point2, 10
33, point3, 10
37, point1, 12
38, point2, 12
39, point3, 12
רעיון לכוון?