עבור לתוכן
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.

עזרה בשאילתת sql

Featured Replies

פורסם



[FONT=arial]SELECT distinct isnull(sum(o.[OT]),0) as total, a.[AFName]
FROM [Ag] as a
left join [AHistory] as h
on a.[AID]=h.[AID]
left join [Or] as o
on h.[OrID]=o.[OrID] and [StatusID]=1 and [Date] between dateadd(day,-1,cast(@year+'-'+@month+'-'+@day+' 7:0:0.000' as date))
and cast(@year+'-'+@month+'-'+@day+ ' 7:0:0.000' as date)
where a.[ALocation]=@cntry
group by a.[AFName]
order by a.[AFName]

[/FONT]

[LEFT][FONT=arial]


[/FONT]

[/LEFT]


יש לי שאילתא שרשמתי שמציגה בעצם סיכום יומי של אנשי מכירות, יום מכירות נחשב עד 7 בבוקר מ7 בבוקר יום לפני

ככה שזה מסכם לי לכל סוכן את המכירות שעשה בין השעות הנל, עכשיו אני רוצה לעשות את זה מתאריך עד תאריך

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

יש למישהו רעיון איך לעשות טבלה שמכילה סיכום חודשי לדוגמא של כל איש מכירות כל יום?

אני רוצה להמנע מהשימוש בwhile

והרצת הפרוצדורה על כל התאריכים.

ארכיון

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

דיונים חדשים

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.