Your SQL command was:
SELECT TOP 100
 star.apogee_id, star.ra, star.dec, star.glon, star.glat, 
 star.vhelio_avg, star.vscatter,
 obj.j, obj.h, obj.k, obj.ak_targ, obj.ak_targ_method, obj.ak_wise,
 aspcap.teff, aspcap.logg, aspcap.m_h
FROM apogeeStar star
 JOIN aspcapStar aspcap on aspcap.apstar_id = star.apstar_id
 JOIN apogeeObject obj on aspcap.target_id = obj.target_id
WHERE (aspcap.aspcapflag & dbo.fApogeeAspcapFlag('STAR_BAD')) = 0 and aspcap.teff > 0
 and (star.vhelio_avg > 300) and (star.starflag &
 dbo.fApogeeStarFlag('SUSPECT_RV_COMBINATION')) = 0
 and star.nvisits > 2 order by aspcap.apogee_id

Your query output (max 500,000 rows):

apogee_idradecglonglatvhelio_avgvscatterjhkak_targak_targ_methodak_wiseteffloggm_h
2M00334030-71520128.417942-71.867012304.891890062-45.1935336572360.2580.65645413.4512.93412.8260.01131381SFD0.071604244937.5732.096321-1.693862
2M02593571-173145844.898812-17.529409201.693075887-58.951946746327.7890.46200912.67312.02811.9380.007124389SFD0.032130034601.8591.984755-0.9649016
2M03072150-001123246.839622-0.189784179.060222208-47.6898536304408.4150.1000710.0449.5519.3960.01923041SFD0.089045414821.4482.332814-0.8300515
2M03190629-081930649.77622-8.325167191.620018389-50.3608488494302.1010.1727439.3768.7448.7050.02316716SFD0.055998054946.6661.82362-2.098861
2M03442895-101753956.120655-10.298322198.972668655-45.9883801906321.8190.64451512.64512.07712.0070.02294177SFD0.067931634898.4772.289849-1.101862
2M04482309-704933372.096236-70.825943282.657906206-35.4646336436303.2420.28318113.62212.71512.6080.05510939SFD0.14412583954.9120.4629061-1.157962
2M04505651-704251172.73549-70.714203282.441619812-35.3042587128319.040.42282613.50112.62712.3830.06569965SFD0.18176413754.7740.07930149-0.8249015
2M04512343-713154272.847657-71.531723283.368592468-34.9957226476340.2440.77137613.55912.57512.3530.0505677SFD0.14779753850.9590.2739038-0.9438515
2M05050052-652254876.252196-65.381889275.709600764-35.4914350438305.3320.36610513.49512.71912.5280.02600438SFD0.075275973994.6830.6350023-0.5350416
2M05051429-661853176.309546-66.314751276.820289763-35.2662715136301.8630.61798910.399.6199.3160.03773943SFD0.15055263883.363-0.2212088-0.5649716
2M05072090-650835376.837094-65.143166275.361297456-35.30096243302.1310.20665113.52912.7912.580.02896033SFD0.11291434104.4181.04862-0.3721116
2M05084490-663158477.187094-66.532913276.988011818-34.8764741154380.7451.0598411.58210.88910.6880.04476804SFD0.15881364209.7291.210935-0.9501715
2M05101202-653030777.550121-65.508545275.728218696-34.9376136988306.7310.12908413.42612.5612.3680.01889193SFD0.10740673884.8980.3817177-0.9213715
2M05103412-645743177.642201-64.961998275.064278348-35.0023675686310.7170.091621213.62812.71412.5480.01643136SFD0.048653713986.8730.4933952-0.7663916
2M05104840-662609177.70168-66.435867276.821126566-34.6954000049313.2110.3995113.44612.5812.4220.044198SFD0.1358643863.0670.04329415-1.089061
2M05111553-401810277.814737-40.302853244.735663455-35.610337407317.4040.30806313.37412.7612.6790.01313861SFD0.060588164862.5492.229825-0.9127415
2M05133868-400739478.411192-40.127613244.596377391-35.1357219368319.660.29817212.09211.44911.364-9999none0.093636394394.8691.417909-1.133561
2M05134480-400028078.436708-40.00779244.454536238-35.0999757239317.1510.46054110.6069.7819.6220.01233971SFD0.11016013973.2370.1741692-1.118762
2M05134935-400315878.45566-40.054405244.513407677-35.0920142685320.490.11067910.6499.8879.6790.01172828SFD0.146884203.2191.081483-1.041162
2M05135029-400206978.45958-40.035271244.49075023-35.0864109059320.440.10048512.80912.17512.0740.01161871SFD0.094553894626.991.937223-0.9890115
2M05135302-400042978.470939-40.011936244.46397258-35.0745791344319.8480.18269311.67311.01210.8640.01161871SFD0.088127924274.851.287867-1.119062
2M05135356-395517978.4732-39.921661244.355033733-35.0603525641321.1780.061951211.65610.95710.7950.01171113SFD0.146884500.2761.547058-0.9091516
2M05135671-400101678.486306-40.01712244.472231219-35.0636383193327.3050.27663913.05412.46412.3180.01161871SFD0.16891224745.7121.911584-1.064062
2M05135867-400012078.494485-40.003353244.456631999-35.0555307842324.5120.24585312.91812.30312.191-9999none0.18543674670.3731.772202-1.042662
2M05135920-660404778.496668-66.067978276.308194546-34.4515610984311.4851.0277513.63212.71512.5360.02562411SFD0.13678233813.3970.2980661-0.6453115
2M05135945-400522578.497722-40.089607244.561417586-35.0649674254315.890.019641112.65612.06611.920.01143206SFD0.093636394521.8851.594532-1.171362
2M05135971-395710978.498807-39.953053244.396343958-35.0452750062323.3050.10392310.8710.089.8990.01109121SFD0.15514194257.3130.8871844-0.9661415
2M05135976-400200778.499015-40.033539244.493739377-35.0562666323313.0930.28613812.4811.84511.7810.01161871SFD0.220324735.2721.996166-1.010062
2M05140043-400413378.501828-40.070374244.538671463-35.0592111583327.2480.87069410.7239.9239.7540.01111202SFD0.13127474014.6660.6597207-1.138162
2M05140068-400323978.502857-40.056664244.522214862-35.0565430393322.7140.27297712.50411.91811.782-9999none0.19553454583.6251.647815-1.127861
2M05140179-400252578.507488-40.04792244.512232407-35.0518264428311.4680.42237512.57611.9511.827-9999none0.59027394679.1231.757806-1.061262
2M05140280-400122778.511683-40.022995244.482620265-35.0452025728321.3320.97377210.81710.049.901-9999none0.19186184137.0280.9408123-1.095162
2M05140584-400212678.52437-40.036835244.501002623-35.0374950626327.6630.077572412.11411.48811.491-9999none1.0134724409.0921.547197-1.120062
2M05140585-400324578.524409-40.056824244.525187292-35.0402266584323.5280.083251911.16110.3610.237-9999none0.6600424429.6331.427439-0.9502615
2M05140618-395643278.525753-39.945351244.390540606-35.0237468724320.8110.29716313.15512.59112.4730.01109121SFD0.058751424608.7661.845108-1.096062
2M05140778-400118178.532419-40.021709244.483748993-35.0292979097317.6070.21519412.73212.12212.0330.01100791SFD0.3699544570.1051.597203-1.155462
2M05140985-400136078.541072-40.026684244.49088666-35.0234247338314.1720.51215811.50710.76110.6470.01100791SFD0.24510554427.4941.514191-1.033562
2M05141035-395814878.543144-39.970787244.423564005-35.0140895611326.1010.23707412.81612.29512.186-9999none0.1358644807.8791.6896-1.099862
2M05141262-400252678.552598-40.047951244.518097319-35.017629963324.8160.12122911.34810.60310.481-9999none0.31028354194.5221.186581-1.102062
2M05141446-400110978.560288-40.019703244.484936828-35.0078835022321.7850.22680912.08311.39811.257-9999none0.13035554520.0341.681966-0.9549515
2M05141453-400213478.560549-40.037067244.505965604-35.0100941378320.3040.2506612.31711.6211.5290.01100791SFD0.14779754400.6111.445752-1.106462
2M05141575-400329978.565652-40.058327244.532332744-35.0091700038319.9480.14610511.91811.2511.0730.01084996SFD0.15606024465.2511.599054-1.062962
2M05141724-400208078.571852-40.035557244.505605025-35.0013143573318.210.057497612.18611.54311.3880.01036445SFD0.10924264380.251.487536-1.088662
2M05141933-400423878.580576-40.073292244.552356494-34.9999294182326.890.96845110.3189.5159.2640.01084996SFD0.22307423943.7320.377888-1.172462
2M05141947-400007678.581136-40.002121244.466391827-34.9896263525327.4260.21644612.9212.29212.2340.01068354SFD0.044981984551.7941.736849-1.087362
2M05141956-400405578.581515-40.068214244.546338527-34.9985149437327.7750.17362712.28611.58111.42-9999none0.12025874494.3091.60776-1.073662
2M05142163-652217878.590149-65.371613275.468445346-34.5375612803309.7840.73579413.41912.56312.372-9999none0.28090793848.2910.2593712-0.9095116
2M05142529-400136178.605382-40.026707244.499261989-34.9746599131326.5820.58836811.05410.29210.0870.01008959SFD0.1358644194.0061.204885-1.047862
2M05142596-400253778.608176-40.048271244.52568612-34.9755401584320.3740.63110511.32410.55610.380.01036445SFD0.13678154352.3771.288097-0.9325715
2M05142623-394833078.609327-39.809177244.236994406-34.9411028878318.3710.086842912.71512.07511.950.01195843SFD0.097308134597.7641.720698-1.081962
2M05142891-400445478.620487-40.079288244.564768098-34.9705150758324.420.23628812.37211.70111.5210.01069999SFD0.12668464659.0961.824083-0.9029415
2M05143301-401236578.637561-40.210148244.725136374-34.9756458375326.3090.33763310.7559.9539.7530.01142953SFD0.12025784002.2470.7139815-1.128362
2M05145603-400041378.733462-40.011497244.497629103-34.8754091233320.7781.3601610.589.6599.4640.01075337SFD0.34975864145.0320.5241286-1.006362
2M05151071-661249878.794626-66.213837276.455572903-34.3066298657312.9680.37487713.69612.77312.6360.03786185SFD0.059669793858.4080.5890389-0.5590115
2M05151242-653746478.801791-65.629562275.758241714-34.4065544208309.6891.2795611.76510.75210.3480.02100261SFD0.7683663493.474-0.415448-0.7056016
2M05152795-403845978.866476-40.646091245.280736433-34.8622169176319.8770.10540511.23210.46910.2870.00954674SFD0.14779754334.1011.088164-0.9682215
2M05165073-654138679.211399-65.694061275.800559999-34.22925628320.8010.021911313.51912.66112.4870.02608136SFD0.040391873932.8340.4669169-0.6906316
2M05181520-725924879.563353-72.990242284.330204075-32.6156843455329.4490.16302813.16612.43812.370.0326268SFD0.063341534362.7171.611639-0.8071916
2M05241694-730708281.070591-73.11895284.35935717-32.1585942151306.1790.64197213.48912.57212.3740.02836206SFD0.090881283824.2810.2907558-0.7829615
2M05241874-235844481.078099-23.97901226.648695039-29.1471817562390.0190.55103612.17511.85111.7950.009030893SFD0.041310245433.4213.327391-1.651962
2M05251106-242843681.296094-24.478783227.263649965-29.1196937814366.1170.2647413.1412.57112.4710.01064195SFD0.089963794621.0611.937984-0.8994315
2M05254186-235237681.424437-23.877134226.655969554-28.8146819344379.7320.27611811.28110.61910.4410.01044747SFD0.1165864352.2561.282125-1.313362
2M05451193-711432386.299709-71.242325281.883217856-30.8861215421807.6960.25306913.83511.86110.521-9999none2.8246865438.2725.734015-2.457549
2M05454272-710435586.428009-71.076553281.686017898-30.8626792533327.6410.31926913.56112.70912.5470.1041722SFD0.21297563907.690.3916204-0.7574415
2M05463627-714346686.651128-71.729622282.433092055-30.7222849302333.6810.31743210.2079.4099.1190.03830353SFD0.17166643886.348-0.02548518-0.5716615
2M05470106-703051686.754417-70.514336281.022038903-30.811796946301.6210.30871713.24212.42612.261-9999none0.26530183873.2570.2159549-0.8806415
2M05471442-704154586.810089-70.698479281.233416574-30.7760145419303.3350.74639113.3712.52912.2760.1411033SFD0.20196043843.0130.0253321-0.9521216
2M05484723-712647887.196802-71.446617282.085396367-30.5797287105305.650.29591813.48612.65812.3820.04236324SFD0.15147013815.250.2940267-0.6535615
2M05491102-714902687.295926-71.817413282.510386422-30.5126300676314.010.99831712.93711.98711.7490.03250196SFD0.39382213640.4020.01381048-1.129662
2M05543827-703905888.659489-70.651627281.122995307-30.1696574551388.1250.066722911.25110.5510.370.03120163SFD0.13219224266.7441.271541-1.179762
2M05560941-703745389.039209-70.629265281.088426015-30.045358314303.7790.2373713.56512.71312.493-9999none0.46909793861.4570.4162046-0.6373516
2M05563729-704458789.155407-70.749657281.224738814-30.0001782744311.9470.14841913.37712.52212.270.0312231SFD0.24602383859.1190.1435481-1.052862
2M05564624-705445589.192701-70.912643281.411812827-29.978700534313.7010.86840212.77611.85811.6150.03183787SFD0.36352813676.054-0.1698676-0.7495816
2M05573803-701555689.408498-70.26545280.661496995-29.94088461317.7410.39167913.5112.72212.5130.03151683SFD0.13861823976.0830.5134068-1.215762
2M06030440-705748790.768354-70.963554281.444044918-29.4623696034303.9250.15159913.39812.48412.2730.03156921SFD0.10373413806.1450.2202633-0.6300616
2M06034443+140959990.93515514.166653194.881265865-3.82427008651314.7310.20394413.3512.47612.1880.3846418RJCE_WISE_PARTSKY0.39106784745.4022.060105-0.9451516
2M06202673-751915795.111401-75.321053286.389487885-28.1320520705428.7381.4270413.17612.41912.3160.03800733SFD0.1165864218.7230.9718655-1.256462
2M06215759-020226295.489986-2.040616211.385335855-7.48809003574402.7390.20861313.44912.77812.5680.1817641RJCE_WISE_PARTSKY0.2010424825.6812.234306-1.013862
2M06240184-750231796.007708-75.042145286.075721103-27.9005228534311.6650.097001314.79914.07613.8360.03518149SFD0.12209454253.5421.219463-0.7914115
2M06241645-753933996.068555-75.659424286.77435054-27.8942491821425.2660.44300514.19413.63213.4590.02407646SFD0.059669794761.4811.718486-1.763762
2M06260920-743355096.538361-74.5653285.540425225-27.7501378581394.910.21641114.20413.69913.5960.03943239SFD0.14320834836.8872.423496-0.7632015
2M06281905+171313297.07941217.220348195.0102300282.83046645701314.4660.4945959.0868.197.9030.1716655RJCE_WISE_PARTSKY0.22215584009.9180.7361344-1.286762
2M06295101-753758097.462548-75.632805286.753774117-27.5481274785344.2930.24014514.61313.91513.8940.02621001SFD0.12117614381.4860.9657654-1.664962
2M06313655-752700997.902295-75.450256286.553197313-27.4309980667303.0291.0428514.66513.93113.8020.0253125SFD0.18451754247.1741.11761-1.192162
2M06322338-744316398.097452-74.721222285.73600068-27.3442952287331.1840.48945914.69213.96113.8020.0290125SFD0.094554774258.5081.266742-0.9169216
2M06324264-755149398.177684-75.863716287.02194985-27.3817177848339.8251.0922613.63112.8412.5980.02850886SFD0.18543593896.4960.4529727-1.108461
2M06335019-741727298.459127-74.290894285.259200876-27.2220426838303.9041.0884214.27213.47513.360.0298691SFD0.06334244146.2220.7006273-1.359362
2M06344837-755045298.701582-75.845909287.009219785-27.2529514988316.0910.27200113.80613.22413.0660.02951946SFD0.17258394575.1491.532946-1.334262
2M06374160-751851299.423371-75.31424286.425766014-27.0398334616306.3570.1498814.16213.39213.179-9999none-99993983.8450.7589435-0.8827115
2M06391014-751733699.792252-75.292671286.409508009-26.9448942181314.5790.49060114.3913.65213.5210.03213314SFD0.081702824290.1690.9382648-1.503162
2M06394281-751209799.928401-75.202698286.312018224-26.9031625798418.7670.21302214.18313.79313.6530.03422065SFD0.11199595125.1982.003502-1.230062
2M06400075-7522285100.003157-75.374596286.505865436-26.8981848459327.4740.31143514.67413.8913.7650.04039275RJCE_WISE0.040392754242.931.255996-0.9431515
2M06402727-7514598100.11365-75.249954286.369191955-26.8599878113306.2290.54715714.15913.47913.3580.03465062SFD0.18084584374.7870.8427565-2.027562
2M06405573-7532320100.232212-75.542236286.698467424-26.8546399287334.1970.32002414.6713.91513.7330.03447255SFD0.1165864161.5841.221928-0.7034916
2M06435276-7504587100.969837-75.082993286.205546518-26.6264017326305.7930.24890214.6913.8613.6830.04487168SFD0.067931634197.3091.285162-0.7508516
2M06440647-7500105101.026977-75.002922286.118094045-26.6036894883319.670.27947513.87512.96312.8090.04564642SFD0.077111843943.6520.4929737-0.9203016
2M06450394-7443538101.266426-74.731621285.823738659-26.5132055648333.0180.34260814.1813.32713.2080.04035888SFD0.1358644078.5291.061919-1.230862
2M06544908-2958490103.704533-29.980303240.415792508-12.5027271978303.2380.048010812.10311.47611.3660.129438RJCE_WISE0.1294384601.7711.711921-1.262262
2M06553026+0436384103.876114.610673209.2875359663.00335955413355.1170.35495713.34212.59112.4090.2148114RJCE_WISE_PARTSKY0.23408944983.7662.543621-0.9900315
2M07232507-0915406110.85449-9.26129224.8242321572.79645206091377.5750.34488212.54211.72911.4990.1716664RJCE_WISE_ALLSKY0.17350234419.3131.646557-0.7766916