Your SQL command was:
SELECT TOP 100
 s.apogee_id,s.ra, s.dec, s.glon, s.glat,
 s.vhelio_avg,s.vscatter,
 a.teff,a.logg, a.m_h, a.alpha_m,
 dbo.fApogeeAspcapFlagN(a.aspcapflag),
 dbo.fApogeeStarFlagN(s.starflag)
FROM apogeeStar s
 JOIN aspcapStar a on a.apstar_id = s.apstar_id
WHERE (a.aspcapflag & dbo.fApogeeAspcapFlag('STAR_BAD')) = 0 
 and a.teff > 0 and a.m_h < -2

Your query output (max 500,000 rows):

apogee_idradecglonglatvhelio_avgvscatterteffloggm_halpha_mColumn1Column2
2M01473847+604157426.910301208496160.6992797851563129.757827495-1.42531505831497.86105657.683.345074-2.398662-0.657631CHI2_WARN STAR_WARN SUSPECT_BROAD_LINES
2M03585942+561112759.747550964355556.1868591308594146.9219685162.31433434943-885.505659.0013.602818-2.417161-0.591301
2M05362543-064257784.1058959960938-6.71603012084961210.404578342-19.7241810076-826.1505632.8293.847267-2.429362-0.603461
2M06513340-0657592102.889198303223-6.96644020080566219.151750173-3.14404921383793.99906391.694.627291-2.432061-0.582641
2M03082560+261953247.106624603271526.3309440612793157.479146502-27.1998571126-142.79305351.6673.425564-2.4109620.420899SN_WARN ROTATION_WARN STAR_WARN SUSPECT_BROAD_LINES
2M14023185+0941100210.6326904296889.68609619140625350.16707368965.8039488968-25.232305005.1881.861074-2.4050610.324639
2M12005238+0636518180.2182769775396.61440896987915270.29624694766.2280296442-21.42131.278257611.8293.630166-9999.99-9999.99
2M14023185+0941100210.6327362060559.68613433837891350.16721781665.8039475508-25.492604766.6681.519355-2.4557610.317609ROTATION_WARN STAR_WARN SUSPECT_BROAD_LINES
2M11552715+0907449178.8631744384779.12917137145996264.00293595467.6642987928180.4620.3312414830.6631.727839-2.2448620.324669
2M19451414-1729269296.308929443359-17.490840911865222.7658001197-19.540621346132.529304653.8351.311391-2.3070610.275709SN_WARN STAR_WARN
2M14163658+4221356214.15199279785242.359901428222779.730168895266.9233511904-89.247510.35587604.499-9999.99-9999.99-9999.99SN_WARN STAR_WARN SUSPECT_BROAD_LINES SUSPECT_RV_COMBINATION LOW_SNR
2M22391317+6451305339.80499267578164.8584976196289109.4697117435.501293357191.503679.413886995.608-9999.99-2.0519490.074626SUSPECT_RV_COMBINATION
2M17343249-2817260263.635402-28.290564359.2557966992.4030819907713.43310.7142918172.759-9999.99-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_BROAD_LINES SUSPECT_RV_COMBINATION PERSIST_HIGH
2M17350195-2720524263.758161-27.3479020.1086282394032.820921714886.554662.081748108.674-9999.99-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_RV_COMBINATION
2M17351654-2827218263.818924-28.456072359.2037181142.17778375432-57.37290.708598364.9484.690763-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_BROAD_LINES
2M17352593-2723384263.858056-27.3940160.1176272777022.72134538588-22.113.443968060.5414.352797-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_RV_COMBINATION
2M17353172-2718506263.882178-27.314070.1966136551262.74635982722-41.34950.2161838467.8054.480886-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_BROAD_LINES
2M17354499-2810410263.937468-28.178062359.4943426372.239775635863.463464.388338213.1184.868687-9999.99-9999.99COLORTE_WARN STAR_WARN PERSIST_HIGH
2M17363478-2749022264.144917-27.817286359.8973247022.27937728313-33.41434.827538294.2444.397496-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_BROAD_LINES
2M17364731-2810514264.197154-28.180952359.6150738312.04522327767-1.329041.597418844.085-9999.99-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_BROAD_LINES PERSIST_HIGH
2M17365976-2812006264.249002-28.20019359.6233658641.99633852034-39.35130.3713218392.4584.679555-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_BROAD_LINES PERSIST_HIGH
2M17374276-2838478264.428205-28.646627359.3307354411.6240526999-22.34762.05548801.3154.271661-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_BROAD_LINES SUSPECT_RV_COMBINATION PERSIST_LOW
2M17382460-2726495264.602521-27.4470860.4274193177342.13508119158-23.16210.408458397.7024.78586-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_RV_COMBINATION
2M17383383-2701022264.640995-27.0172840.8095338911792.33535740734-42.54755.120628357.5234.482627-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_RV_COMBINATION
2M17384692-2749025264.695519-27.8173810.1579501383191.86790797484-48.88610.2596258810.9884.550921-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_BROAD_LINES SUSPECT_RV_COMBINATION
2M17392103-2823379264.837646-28.393866359.7366470331.45474334032-36.39310.3252857940.4614.287265-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_RV_COMBINATION
2M17410268-2719177265.261191-27.3215940.8446517183671.7062201842210.10010.7078338212.5754.475124-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_RV_COMBINATION
2M17273088-2711595261.878674-27.199883359.3187684954.30116123259-14.485625.75188492.8094.325326-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_RV_COMBINATION PERSIST_HIGH
2M17281028-2728530262.042856-27.481409359.1642204474.02409222653-45.20860.3345968250.3574.192987-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_BROAD_LINES SUSPECT_RV_COMBINATION
2M17282005-2710270262.08358-27.174173359.4411573454.16337472182-32.09991.324578136.102-9999.99-9999.99-9999.99COLORTE_WARN STAR_WARN PERSIST_HIGH
2M17283143-2734121262.13096-27.570051359.1333013613.91002902701-15.71955.274559014.84.372344-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_BROAD_LINES SUSPECT_RV_COMBINATION
2M17283785-2633457262.15773-26.5627359.9895141464.44492947182-49.30773.796938373.194.554878-9999.99-9999.99 SUSPECT_BROAD_LINES SUSPECT_RV_COMBINATION
2M17291474-2714047262.311446-27.234663359.5023746693.960887236-32.06380.475058505.694.636478-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_RV_COMBINATION PERSIST_HIGH
2M17295801-2704303262.491714-27.075089359.7243320673.91442677064-3.700010.4836038568.747-9999.99-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_RV_COMBINATION PERSIST_HIGH
2M17300916-2702045262.5382-27.034586359.7810319423.9019995955-44.89340.08726088036.9054.796517-9999.99-9999.99COLORTE_WARN STAR_WARN PERSIST_MED PERSIST_HIGH
2M17305907-2731490262.746155-27.530283359.4667025353.47599448911-49.03715.082518267.9194.50956-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_BROAD_LINES SUSPECT_RV_COMBINATION PERSIST_LOW PERSIST_MED
2M17330366-2721034263.26526-27.35095359.8687861113.18741336575-33.79323.002768383.3194.530976-9999.99-9999.99 SUSPECT_RV_COMBINATION
2M17331323-2704329263.305163-27.0758290.1195228706193.30692720149-20.84564.660738637.1323.910131-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_BROAD_LINES SUSPECT_RV_COMBINATION
2M17341356-2647596263.556515-26.7999080.4734117191373.2679605831112.71146.44758862.089-9999.99-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_BROAD_LINES SUSPECT_RV_COMBINATION
2M17124568-2455256258.190359-24.923798359.326416188.3205087095-14.716213.32888109.3884.200416-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_RV_COMBINATION PERSIST_LOW PERSIST_HIGH
2M17131500-2401061258.312531-24.0183730.1401957826648.75005704392-41.902814.2918097.6524.566283-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_BROAD_LINES SUSPECT_RV_COMBINATION
2M17132779-2352163258.365832-23.8712040.2904603101698.7945255825718.34952.722867658.9643.50925-9999.99-9999.99SUSPECT_RV_COMBINATION PERSIST_LOW
2M17144277-2400418258.678222-24.0116250.3391747427378.48001724412-19.67682.711277638.1283.947248-9999.99-9999.99SUSPECT_BROAD_LINES SUSPECT_RV_COMBINATION PERSIST_LOW BRIGHT_NEIGHBOR
2M17152121-2352593258.838401-23.8831420.5302881254098.43307492227-28.145710.3448976.5724.206483-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_BROAD_LINES SUSPECT_RV_COMBINATION PERSIST_LOW
2M17154331-2459168258.930471-24.988003359.661970277.73401502983-64.47419.462478802.4164.032545-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_BROAD_LINES SUSPECT_RV_COMBINATION PERSIST_MED
2M17161223-2418385259.050969-24.310720.2867790496948.03009285546-89.65739.895278055.8394.677097-9999.99-9999.99 SUSPECT_BROAD_LINES SUSPECT_RV_COMBINATION
2M17162362-2458526259.098418-24.981279359.7551582987.61281194281-40.59755.447137885.1653.888779-9999.99-9999.99 SUSPECT_BROAD_LINES SUSPECT_RV_COMBINATION PERSIST_LOW
2M17182186-2432140259.591104-24.537230.3801273142627.49659803059-95.771814.68088239.8464.733632-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_BROAD_LINES SUSPECT_RV_COMBINATION PERSIST_LOW
2M16591676-2156517254.81985-21.94772359.94088671112.5692225671-97.22297.931748521.9924.479052-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_BROAD_LINES SUSPECT_RV_COMBINATION
2M16593004-2208024254.875175-22.13402359.81849741912.4173697343-16.21537.080168397.9824.545375-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_BROAD_LINES SUSPECT_RV_COMBINATION PERSIST_HIGH
2M17004697-2136392255.195713-21.6108950.43061455734812.4872057848-16.82783.622587718.0834.128278-9999.99-9999.99SUSPECT_RV_COMBINATION PERSIST_LOW
2M17014973-2202093255.457226-22.0359330.22583302239912.040494067611.3821.274787408.6173.867113-9999.99-9999.99SUSPECT_RV_COMBINATION
2M17022020-2221273255.584167-22.3575950.031022201729911.7559902425-152.2693.857665221.7092.578907-2.1126620.256119SN_WARN ROTATION_WARN COLORTE_WARN STAR_WARN SUSPECT_BROAD_LINES SUSPECT_RV_COMBINATION PERSIST_LOW LOW_SNR
2M17031607-2136442255.816999-21.6122840.77698212789712.0191574083-109.32421.7278246.5744.532183-9999.99-9999.99SUSPECT_BROAD_LINES SUSPECT_RV_COMBINATION
2M17033525-2155491255.896881-21.9303210.55801745574811.7726975186-29.432.526157367.9944.429216-9999.99-9999.99SUSPECT_BROAD_LINES
2M17041270-2153164256.052958-21.8879090.67971563688711.68013164781.568653.305977430.3624.01294-9999.99-9999.99SUSPECT_BROAD_LINES SUSPECT_RV_COMBINATION
2M16515758-2034597252.989935-20.5832650.016573432625614.7519253273-7.16120.3774697959.341-9999.99-9999.99-9999.99COLORTE_WARN STAR_WARN
2M16524318-2058433253.179953-20.978695359.80107732914.3718946318-8.763170.406567377.0373.821156-9999.99-9999.99
2M16524724-2032351253.19686-20.5431060.17025884721214.6213603487-61.528612.09618297.5014.879781-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_RV_COMBINATION
2M16533489-2129178253.395381-21.488291359.50632280413.9046547969-16.51955.889548977.7214.581049-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_BROAD_LINES SUSPECT_RV_COMBINATION PERSIST_HIGH
2M16553023-2142283253.875964-21.707867359.60202940313.4155428488-3.324973.254558520.218-9999.99-9999.99-9999.99COLORTE_WARN STAR_WARN PERSIST_LOW BRIGHT_NEIGHBOR
2M16435678-1958593250.986595-19.983139359.32309039416.6080997477-27.0822.776668256.484-9999.99-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_BROAD_LINES SUSPECT_RV_COMBINATION PERSIST_HIGH
2M16460264-1914202251.511017-19.2389620.25291718421716.672543529911.88050.1201217450.2853.941779-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_BROAD_LINES
2M16464744-2015207251.697707-20.255777359.52480675615.913349697239.79690.1079864559.2451.34399-2.0195620.329629COLORTE_WARN STAR_WARN PERSIST_HIGH BRIGHT_NEIGHBOR
2M16484344-2025432252.181004-20.428682359.66912098215.4486562708-16.23582.223817731.2733.88886-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_RV_COMBINATION
2M16493571-2012007252.398826-20.200209359.98610766415.4248685419-39.60443.866797742.5834.029318-9999.99-9999.99SUSPECT_RV_COMBINATION PERSIST_HIGH
2M16504819-2007123252.700811-20.1201080.22993532700715.2474268132-40.52421.287687811.5813.568956-9999.99-9999.99COLORTE_WARN STAR_WARN PERSIST_HIGH
2M16505570-1950153252.732107-19.8375950.48206618829515.394214809-34.75882.519687751.0744.162193-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_RV_COMBINATION PERSIST_MED PERSIST_HIGH
2M15590217-1111325239.759073-11.192368359.19334156930.5331746685257.080.1081694539.5521.085183-2.2536620.388389SN_WARN STAR_WARN PERSIST_HIGH
2M16005852-1220130240.24386-12.336972358.5585186429.42277382323.495073.588187553.614.255491-9999.99-9999.99 SUSPECT_RV_COMBINATION
2M16020667-1005194240.527798-10.0887480.73827186854130.6767822081-6.990620.2495534468.8970.9659683-2.1330620.314179
2M16023428-1228240240.642851-12.47336358.73471401329.0396197805172.1720.5813215396.8622.402824-2.1200620.368589PERSIST_LOW
2M16040989-0957054241.041241-9.9515241.2371370854630.37708864593.025611.001557664.4043.825564-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_BROAD_LINES SUSPECT_RV_COMBINATION
2M15144943-0141354228.70599-1.69319358.86991248945.042134520795.42860.5801675026.1032.108538-2.1416620.331319PERSIST_HIGH BRIGHT_NEIGHBOR
2M15150744-0110267228.781036-1.174093359.48667928945.3356397321-0.1453850.04451087345.8213.668597-9999.99-9999.99SUSPECT_BROAD_LINES
2M15174007-0024110229.416969-0.403070.90798284961945.3706686346-25.34980.2304037610.8154.040941-9999.99-9999.99COLORTE_WARN STAR_WARN
2M15200256-0218392230.010687-2.310893359.45632706143.661593115938.85910.3105468417.1394.561003-9999.99-9999.99COLORTE_WARN STAR_WARN
2M14283083+0837482217.1284788.630057358.60970415260.5252132527-3.102230.3436577554.6984.075837-9999.99-9999.99PERSIST_LOW PERSIST_MED PERSIST_HIGH BRIGHT_NEIGHBOR
2M14325654+0937262218.2356019.6239681.5822596971260.3463183919-26.92360.6479934933.7661.931245-2.1961620.322829COLORTE_WARN STAR_WARN
2M14332892+0829386218.370548.4940790.032841895865659.5145522914-25.14630.4236065245.272.358974-2.0145620.254129PERSIST_LOW
2M14344856+0836183218.7023398.6051030.61896785304759.3381917875-28.55041.15026154.3324.553421-2.1646620.352469COLORTE_WARN STAR_WARN PERSIST_LOW BRIGHT_NEIGHBOR
2M14355583+0817068218.9826358.2852480.49652124897558.9195863288-173.7311.429965160.1982.173064-2.2286620.340549
2M13385588+1842417204.73283418.711597357.79793541976.2145248747311.0272.45623317.7990.1686294-2.076962-0.009724
2M13401498+1749051205.0624217.818098355.87199408975.3939047238-140.5930.4125645328.0812.545422-2.1445620.368259SN_WARN STAR_WARN PERSIST_HIGH
2M13434835+1931084205.95146319.5190263.3392366264275.787264914-71.11050.2890144804.7521.887504-2.0212610.357069PERSIST_LOW BRIGHT_NEIGHBOR
2M13451328+1921213206.30533419.3559273.5654316086275.4201196394-187.0760.165865353.1222.902946-2.0128610.311889
2M13460333+1713371206.51391117.226997357.63218776273.9623499167-107.8192.869294699.6081.38014-2.0325620.394869PERSIST_MED BRIGHT_NEIGHBOR
2M13493976+1753033207.41567417.8842771.4076689399273.704326027959.84110.5780214680.2841.362226-2.0064620.216919SN_WARN STAR_WARN PERSIST_HIGH
2M17510378-2930227267.765762-29.5063170.124533302364-1.31136814576-16.08246.318718119.3664.962075-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_RV_COMBINATION
2M17515961-3036450267.998409-30.612509359.27540258-2.04880204558-27.61030.1996418141.3664.862053-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_RV_COMBINATION
2M17515981-2913437267.999234-29.2288190.467103167308-1.34473550719-59.13160.4047828429.974.683894-9999.99-9999.99SUSPECT_BROAD_LINES SUSPECT_RV_COMBINATION
2M17523656-3026284268.152371-30.441225359.490464871-2.07590760626-13.02371.76968319.132-9999.99-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_BROAD_LINES PERSIST_LOW PERSIST_HIGH
2M17523677-3050153268.153229-30.83761359.149126737-2.27784321158-37.47764.849167358.7784.014656-9999.99-9999.99SUSPECT_RV_COMBINATION
2M17533230-3011078268.384585-30.185501359.812743813-2.11899172333-70.30245.085238639.6314.60442-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_BROAD_LINES SUSPECT_RV_COMBINATION PERSIST_HIGH
2M17535541-2943007268.480886-29.7168850.259422149847-1.95378434570.5382335.281537844.6954.14034-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_RV_COMBINATION
2M17540117-2911346268.504891-29.1929530.72217455814-1.70676127727-28.69144.200318372.6374.242177-9999.99-9999.99 SUSPECT_BROAD_LINES SUSPECT_RV_COMBINATION
2M17543473-3026292268.644726-30.441469359.705262445-2.44213062548-14.00751.695278750.141-9999.99-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_BROAD_LINES SUSPECT_RV_COMBINATION
2M17543976-3028096268.665674-30.469341359.690284355-2.47177849732-39.2391.359768240.2964.080182-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_BROAD_LINES SUSPECT_RV_COMBINATION
2M17545547-2910328268.731134-29.1757930.836810687425-1.86856658164-45.45143.365778564.0634.627596-9999.99-9999.99COLORTE_WARN STAR_WARN SUSPECT_BROAD_LINES SUSPECT_RV_COMBINATION
2M17545646-2920268268.735288-29.3407970.696069775293-1.95490009345-11.8552.25958168.0254.512848-9999.99-9999.99SUSPECT_BROAD_LINES