Pregunta Albert Forcadell · mayo 5, 2023

hola, me es imposible hacer una consulta de forma correcta. he probado con clausulas LIMIT, OVER ... no válidas para Intersystems por lo visto. Tambien probe con HAVING , con TOP, ... incluso con  GPT y otras AI, pero nada.

lo siento, pero mi sql no da para mas.

TABLA Comp.AlbLin

COLUMNAS AlbLin.ID , AlbLin.Description , AlbLin.Price , AlbLin.Date

Estoy peleando por una query que me calcule la MEDIA del campo precio AlbLin.Price pero solo de los ultimos/mas recientes 3 registros de fecha

---

i am not able to launch a right instruction in sql , please. LIMIT .

8
0 100
Pregunta Albert Forcadell · sep 19, 2022

hi, my apologises for my english and my level . //al final en castellano

first i am having problem executing in terminal with $SYSTEM.SQL.Shell() when i work with the << entering multiline statement mode >>

i ve tried this ...

SAMPLES>DO $SYSTEM.SQL.Shell()
SQL Command Line Shell
----------------------------------------------------
 
The command prefix is currently set to: <<nothing>>.
Enter q to quit, ? for help.
SAMPLES>>  << entering multiline statement mode >>         //i press <enter>
        1>>UPDATE Cinema.Film SET "Description" = 'D1' WHERE "ID" = 1 GO
        2>>UPDATE

7
0 331