עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

עזרה בכתיבת שאילתא ב mysql

Featured Replies

פורסם

אני מנסה ליצור שאילתא וקצת הסתבכתי ..

מה שיש לי זה טבלת של באגים שיש שם:id,step,openuser,last_change_user,comment,status

שדה ה id ושדה step הם מפתחות המטרה שלכל באג יש מספר צעדים ...כלומר אם יש באג שהמספר שלו זה 1 אז שפותחים אותו יהיה id=1,step=1

אם מבצעים בו שינוי יהיה id=1 step=2 וכו,

אני רוצה שאילתא שתחזיר לי את כל הבאגים אבל מכל באג את ה step האחרון שלו כלומר המקסמילאי

אני מקווה שהצלחתי להסביר את עצמי כמו שצריך

תודה בכל מקרה

פורסם

הפתרון שלי הורץ על sql server אולם אני חושב שזהו ansi sql

הרעיון הוא ליצור שאילתא של שליפת הסטפ המקסימאלי לכל id ואז לחתוך את הטבלה לפי נתוני השאילתא

select id, step, openuser ...
from bugs,
(select id maxid, max(step) maxstep from bugs group by id) maxquery
where bugs.id = maxquery.maxid and bugs.step = maxquery.maxstep

פורסם
  • מחבר

:yelclap: :yelclap:

תודה רבה רבה ...זה עובד :xyxthumbs:

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.